| Index: base/json/json_reader.cc
|
| diff --git a/base/json/json_reader.cc b/base/json/json_reader.cc
|
| index f6bdc357a6520d500076628802f400d297cf54ac..bbaf5fb349bcf396d9fa26f6ba0269faac0d9315 100644
|
| --- a/base/json/json_reader.cc
|
| +++ b/base/json/json_reader.cc
|
| @@ -51,9 +51,7 @@ bool ReadInt(base::JSONReader::Token& token, bool can_have_leading_zeros) {
|
| bool ReadHexDigits(base::JSONReader::Token& token, int digits) {
|
| for (int i = 1; i <= digits; ++i) {
|
| wchar_t c = *(token.begin + token.length + i);
|
| - if ('\0' == c)
|
| - return false;
|
| - if (!IsHexDigit(c))
|
| + if (c == '\0' || !IsHexDigit(c))
|
| return false;
|
| }
|
|
|
|
|