Skip to content

Commit

Permalink
jobs/job_read: do not override job_read_cache status
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanmohd committed Aug 28, 2024
1 parent 4e66751 commit 8b4549f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static int job_read_cache(struct job *job)
i++;
}

ret = 0;
ret = JOB_READ_SUCCESS;

out_free_line:
free(line);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8b4549f

Please sign in to comment.