summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index e84a72a..a2ae788 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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) {