]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/emit.c
Merge changes from CUPS 1.5svn-r8950.
[thirdparty/cups.git] / cups / emit.c
index bfae5d6f3d7f934af290fd71a9961ee76ec4c48b..b099ce1706df91951d348bcdb941d7f674a06cd2 100644 (file)
@@ -772,6 +772,7 @@ ppdEmitString(ppd_file_t    *ppd,   /* I - PPD file record */
     if (section == PPD_ORDER_JCL)
     {
       if (!strcasecmp(choices[i]->choice, "Custom") &&
+         choices[i]->code &&
           (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword))
              != NULL)
       {