common: Fix a long-standing bug in the joblist code.

Only triggered in test mode, resulting in bypassing parsing of
all but the first page of a job.
This commit is contained in:
Solomon Peachy 2019-11-14 17:03:21 -05:00
parent 31d22a35a4
commit 67f4c8afac
1 changed files with 1 additions and 1 deletions

View File

@ -1323,7 +1323,7 @@ newpage:
/* Create our own joblist if necessary */
if (!(backend->flags & BACKEND_FLAG_JOBLIST)) {
struct dyesub_joblist *jlist = dyesub_joblist_create(backend, backend_ctx);
if (!list)
if (!jlist)
goto done_claimed;
dyesub_joblist_addjob(jlist, job);
job = jlist;