aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorGravatar Raúl Peñacoba <raul.mikaop.zelda@gmail.com>2017-05-10 21:52:15 +0200
committerGravatar Ricardo Constantino <wiiaboo@gmail.com>2017-07-01 15:09:21 +0100
commitd39f3bcd3af8c137489c5bccdb2bd0692f0dd3a1 (patch)
tree381948f3550b9630d5ed9e1d2e2fd8be36720c7f /misc
parent71f97d9cf397199bb25744b1addd5b3c09dc5666 (diff)
misc/json: avoid redundant condition
Closes #4415
Diffstat (limited to 'misc')
-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;