diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-08-28 17:32:21 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-08-28 17:32:21 +0530 |
commit | 8b4549f191bd3c6a12388e57166cba8c8979a663 (patch) | |
tree | 7a6a1a10968c128db3146fd7aa7d8162a72a21e6 | |
parent | 4e66751204365fdaf7ae44cd3d11492541dade43 (diff) |
jobs/job_read: do not override job_read_cache status
-rw-r--r-- | src/jobs.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |