Explorar o código

Fix compilation error with SDL check flag in Visual Studio

Ruslan Manaev %!s(int64=6) %!d(string=hai) anos
pai
achega
982d5d2ab1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/google/protobuf/generated_message_table_driven_lite.h

+ 1 - 1
src/google/protobuf/generated_message_table_driven_lite.h

@@ -237,7 +237,7 @@ static inline bool HandleString(io::CodedInputStream* input, MessageLite* msg,
 
   switch (ctype) {
     case StringType_INLINED: {
-      InlinedStringField* s;
+      InlinedStringField* s = nullptr;
       switch (cardinality) {
         case Cardinality_SINGULAR:
           // TODO(ckennelly): Is this optimal?