summaryrefslogtreecommitdiffstats
path: root/misc/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/json.c')
-rw-r--r--misc/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/json.c b/misc/json.c
index 2a7c164924..56d440f509 100644
--- a/misc/json.c
+++ b/misc/json.c
@@ -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;