From eb9984fb7b4e32cb38de4b299ac68edb235b1be4 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 9 Feb 2022 09:39:13 +0100 Subject: [PATCH] Update code style and CHANGES.md --- CHANGES.md | 6 ++++++ cups/ppd.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d22a8d20ee..2f2bce0ea8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) ------------------------------------------ diff --git a/cups/ppd.c b/cups/ppd.c index cfbca86b8a..54368ac4c1 100644 --- a/cups/ppd.c +++ b/cups/ppd.c @@ -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)); -- 2.47.2