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/util/internal/json_stream_parser.cc | |
parent | 4f379f81cef4dd8e005fd0bcc9199bf842fc35d4 (diff) |
Fixes static analyzer issues from xcode.
Diffstat (limited to 'src/google/protobuf/util/internal/json_stream_parser.cc')
-rw-r--r-- | src/google/protobuf/util/internal/json_stream_parser.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/google/protobuf/util/internal/json_stream_parser.cc b/src/google/protobuf/util/internal/json_stream_parser.cc index 39be7b03..be51ce56 100644 --- a/src/google/protobuf/util/internal/json_stream_parser.cc +++ b/src/google/protobuf/util/internal/json_stream_parser.cc @@ -315,7 +315,6 @@ util::Status JsonStreamParser::ParseStringHelper() { // We're about to handle an escape, copy all bytes from last to data. if (last < data) { parsed_storage_.append(last, data - last); - last = data; } // If we ran out of string after the \, cancel or report an error // depending on if we expect more data later. @@ -371,7 +370,6 @@ util::Status JsonStreamParser::ParseStringHelper() { } else { if (last < data) { parsed_storage_.append(last, data - last); - last = data; } parsed_ = StringPiece(parsed_storage_); } |