diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -14,6 +14,7 @@ int json_streaming_read(FILE *stream, cJSON **json) int ret; char *line = NULL; + errno = 0; ret = getline(&line, &n, stream); if (ret < 0) { if (errno != 0) { |