From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 16 Nov 2022 21:38:17 +0000 (-0500) Subject: [Mistake Bug-Fix]: Fix cupsfilter by setting both array elements to -1 X-Git-Tag: v2.4.3~110^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F532%2Fhead;p=thirdparty%2Fcups.git [Mistake Bug-Fix]: Fix cupsfilter by setting both array elements to -1 We mistakenly set filterfds[1 - current][0] = -1; twice instead of doing that and setting filterfds[1 - current][1] to -1 as well --- diff --git a/scheduler/cupsfilter.c b/scheduler/cupsfilter.c index 02a5162983..22b54ae78e 100644 --- a/scheduler/cupsfilter.c +++ b/scheduler/cupsfilter.c @@ -1197,7 +1197,7 @@ exec_filters(mime_type_t *srctype, /* I - Source type */ close(filterfds[1 - current][1]); filterfds[1 - current][0] = -1; - filterfds[1 - current][0] = -1; + filterfds[1 - current][1] = -1; } if (next)