diff options
author | Sergio Campama <kaipi@google.com> | 2016-08-30 11:55:49 -0700 |
---|---|---|
committer | Sergio Campama <kaipi@google.com> | 2016-09-20 17:59:27 -0700 |
commit | 1af7c4cb08defd2521d8552fd148932da08b2c46 (patch) | |
tree | a922cd934b5b7b72ff6318aeffa9a27b9310c0f1 /src/google/protobuf/compiler/parser.cc | |
parent | 4f379f81cef4dd8e005fd0bcc9199bf842fc35d4 (diff) |
Fixes static analyzer issues from xcode.
Diffstat (limited to 'src/google/protobuf/compiler/parser.cc')
-rw-r--r-- | src/google/protobuf/compiler/parser.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/parser.cc b/src/google/protobuf/compiler/parser.cc index 519ed8fc..09c7a2b6 100644 --- a/src/google/protobuf/compiler/parser.cc +++ b/src/google/protobuf/compiler/parser.cc @@ -570,6 +570,7 @@ bool Parser::Parse(io::Tokenizer* input, FileDescriptorProto* file) { input_ = NULL; source_code_info_ = NULL; + assert(file != NULL); source_code_info.Swap(file->mutable_source_code_info()); return !had_errors_; } |