summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 9738fc5fe..b4ebe7414 100644
--- a/src/json.c
+++ b/src/json.c
@@ -350,8 +350,10 @@ json_skip_white(js_read_T *reader)
if (reader->js_fill != NULL && c == NUL)
{
if (reader->js_fill(reader))
+ {
reader->js_end = reader->js_buf + STRLEN(reader->js_buf);
- continue;
+ continue;
+ }
}
if (c == NUL || c > ' ')
break;