aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jobs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jobs.c b/src/jobs.c
index 458635b..8f4efb1 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -455,7 +455,7 @@ static int job_read_cache(struct job *job)
i++;
}
- ret = 0;
+ ret = JOB_READ_SUCCESS;
out_free_line:
free(line);
@@ -548,9 +548,10 @@ int job_read(FILE *stream, struct job **job)
ret = job_read_cache(j);
if (ret < 0)
goto out_free;
+ } else {
+ ret = JOB_READ_SUCCESS;
}
- ret = JOB_READ_SUCCESS;
out_free:
cJSON_Delete(root);