]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
[Mistake Bug-Fix]: Fix cupsfilter by setting both array elements to -1 532/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Wed, 16 Nov 2022 21:38:17 +0000 (16:38 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Wed, 16 Nov 2022 21:43:03 +0000 (16:43 -0500)
We mistakenly set filterfds[1 - current][0] = -1; twice instead of doing that and setting filterfds[1 - current][1] to -1 as well

scheduler/cupsfilter.c

index 02a51629831eb643384639697db7beecd3979df9..22b54ae78e661f9bfb74db3f735bedf4a6dd4546 100644 (file)
@@ -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)