diff options
Diffstat (limited to 'src/jobs.c')
-rw-r--r-- | src/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |