misc/json: avoid redundant condition

Closes #4415
This commit is contained in:
Raúl Peñacoba 2017-05-10 21:52:15 +02:00 committed by Ricardo Constantino
parent 71f97d9cf3
commit d39f3bcd3a
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ static void write_json_str(bstr *b, unsigned char *str)
APPEND(b, "\"");
while (1) {
unsigned char *cur = str;
while (cur[0] && cur[0] >= 32 && cur[0] != '"' && cur[0] != '\\')
while (cur[0] >= 32 && cur[0] != '"' && cur[0] != '\\')
cur++;
if (!cur[0])
break;