From 982d5d2ab1e41a0071b9514cad55cca00149cd5c Mon Sep 17 00:00:00 2001 From: Ruslan Manaev Date: Sat, 11 May 2019 00:12:12 +0300 Subject: [PATCH] Fix compilation error with SDL check flag in Visual Studio --- src/google/protobuf/generated_message_table_driven_lite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/generated_message_table_driven_lite.h b/src/google/protobuf/generated_message_table_driven_lite.h index b36e51ba22..8cf177be46 100644 --- a/src/google/protobuf/generated_message_table_driven_lite.h +++ b/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?