Skip to content

Commit

Permalink
fix one more line
Browse files Browse the repository at this point in the history
  • Loading branch information
tapaswenipathak authored and nlhien committed Feb 28, 2020
1 parent d15d3a5 commit 5e00a60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/google/protobuf/stubs/structurally_valid.cc
Expand Up @@ -504,10 +504,7 @@ int UTF8GenericScanFastAscii(const UTF8ScanObj* st,
const uint8* isrc = reinterpret_cast<const uint8*>(str);
const uint8* src = isrc;
const uint8* srclimit = isrc + str_length;
if (srclimit.length() < 7)
*srclimit += `\0\0\0\0\0\0\0`;

const uint8* srclimit8 = srclimit - 7;
const uint8* srclimit8 = str_length < 7 ? isrc : srclimit - 7;
int n;
int rest_consumed;
int exit_reason;
Expand Down

0 comments on commit 5e00a60

Please sign in to comment.