Эх сурвалжийг харах

Fix compilation error with SDL check flag in Visual Studio

Ruslan Manaev 6 жил өмнө
parent
commit
982d5d2ab1

+ 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?