]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update code style and CHANGES.md
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 9 Feb 2022 08:39:13 +0000 (09:39 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 9 Feb 2022 08:39:13 +0000 (09:39 +0100)
CHANGES.md
cups/ppd.c

index d22a8d20ee38b823b8ed18652737360a810d9b26..2f2bce0ea87c588a8b87d1146661885bfc547323 100644 (file)
@@ -1,6 +1,12 @@
 CHANGES - OpenPrinting CUPS 2.4.1 - 2022-01-27
 ==============================================
 
+Changes in CUPS v2.4.2 (TBA)
+----------------------------
+
+- Fixed conditional jump based on uninitialized value in cups/ppd.c (Issue #329)
+
+
 Changes in CUPS v2.4.1 (27th January 2020)
 ------------------------------------------
 
index cfbca86b8adab37d9e6a1c42deef99da2a36e424..54368ac4c16a05d32651667127384402670d3a65 100644 (file)
@@ -3430,12 +3430,12 @@ ppd_update_filters(ppd_file_t     *ppd, /* I - PPD file */
                srctype[256],
                dstsuper[16],           /* Destination MIME media type */
                dsttype[256],
-               program[1024] = {0},            /* Command to run */
                *ptr,                   /* Pointer into command to run */
                buffer[1024],           /* Re-written cupsFilter value */
                **filter;               /* Current filter */
   int          cost;                   /* Cost of filter */
 
+  char         program[1024] = { 0 };  /* Command to run */
 
   DEBUG_printf(("4ppd_update_filters(ppd=%p, cg=%p)", ppd, pg));