Before #832 most successfully finished jobs had incorrect
job state reasons - try to fix them during loading the jobs.
else
ippSetString(job->attrs, &job->reasons, 0, "none");
}
- else if (job->state_value == IPP_JSTATE_COMPLETED && !strcmp(job->reasons, "processing-to-stop-point"))
+ else if (job->state_value == IPP_JSTATE_COMPLETED && !strcmp(ippGetString(job->reasons, 0, NULL), "processing-to-stop-point"))
{
/*
* Try to fix job reasons for older jobs finished before openprinting/cups #832 was applied...