]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Merge pull request #5588 from dargad/job-typo
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 30 May 2019 14:20:50 +0000 (10:20 -0400)
committerGitHub <noreply@github.com>
Thu, 30 May 2019 14:20:50 +0000 (10:20 -0400)
Fix parentheses in cupsdCleanJobs.

scheduler/job.c

index 33ad7025b649548da39c303d7af016f091537b0e..6b2f3e7089757543fb9676fa17cbc2494984aa2f 100644 (file)
@@ -444,7 +444,7 @@ cupsdCleanJobs(void)
   {
     cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCleanJobs: Job %d, state=%d, printer=%p, history_time=%d, file_time=%d", job->id, (int)job->state_value, (void *)job->printer, (int)job->history_time, (int)job->file_time);
 
-    if ((job->history_time && job->history_time) < JobHistoryUpdate || !JobHistoryUpdate)
+    if ((job->history_time && job->history_time < JobHistoryUpdate) || !JobHistoryUpdate)
       JobHistoryUpdate = job->history_time;
 
     if ((job->file_time && job->file_time < JobHistoryUpdate) || !JobHistoryUpdate)