]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/ppd-emit.c
Changelog.
[thirdparty/cups.git] / cups / ppd-emit.c
index 69515a24c858464d722bcbee1215e6964b2e0b8d..b9b0e5ad083e64232efe5a7ffa75ac57c3641964 100644 (file)
@@ -441,6 +441,9 @@ ppdEmitJCL(ppd_file_t *ppd,         /* I - PPD file record */
     * Clean up the job title...
     */
 
+    if (!title)
+      title = "Unknown";
+
     if ((ptr = strrchr(title, '/')) != NULL)
     {
      /*
@@ -490,6 +493,9 @@ ppdEmitJCL(ppd_file_t *ppd,         /* I - PPD file record */
     * issues with some printer's PJL implementations...
     */
 
+    if (!user)
+      user = "anonymous";
+
     snprintf(displaymsg, sizeof(displaymsg), "%d %s %s", job_id, user, temp);
 
    /*