]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.c
Clear informational messages out of printer-state-message when a job completes
[thirdparty/cups.git] / scheduler / job.c
index 1ce21234ad8aa386344c09daf32be01a58cb0599..0f1d648d569ef3e6d284589c912e74384c2b94b2 100644 (file)
@@ -3206,7 +3206,7 @@ finalize_job(cupsd_job_t *job,            /* I - Job */
 
    /*
     * Convert the status to an exit code.  Due to the way the W* macros are
-    * implemented on MacmacOS (bug?), we have to store the exit status in a
+    * implemented on macOS (bug?), we have to store the exit status in a
     * variable first and then convert...
     */
 
@@ -3544,6 +3544,13 @@ finalize_job(cupsd_job_t *job,           /* I - Job */
 
   cupsArrayRemove(PrintingJobs, job);
 
+ /*
+  * Clear informational messages...
+  */
+
+  if (job->status_level > CUPSD_LOG_ERROR)
+    job->printer->state_message[0] = '\0';
+
  /*
   * Apply any PPD updates...
   */