diff options
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ char * dc_json (struct dc_json * j, const char * in, int ln) { /* detects start/ if (j->ready > 0) memmove(j->buf, j->buf+j->ready, strlen(j->buf+j->ready)+1); j->buf[0] = j->backup; + j->ready = 0; } size_t bufstrlen = strlen(j->buf); /* could optimize and cache it into the struct */ if (ln == -1) |