aboutsummaryrefslogtreecommitdiff
path: root/src/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jobs.c')
-rw-r--r--src/jobs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jobs.c b/src/jobs.c
index b5fd31c..0205c71 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -141,7 +141,7 @@ int job_read(FILE *stream, struct job **job)
char *drv_path = NULL;
ret = json_streaming_read(stream, &root);
- if (ret < 0)
+ if (ret < 0 || ret == -EOF)
return ret;
temp = cJSON_GetObjectItemCaseSensitive(root, "name");