]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Remove dead workaround code 545/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Thu, 17 Nov 2022 17:11:09 +0000 (12:11 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Fri, 2 Dec 2022 13:49:34 +0000 (08:49 -0500)
Clang no longer thinks newlength can be 0

scheduler/job.c

index f9e013e86b64aed7a5a30cbc02ccc5b4d09b9974..331af4ebc7ea8899da656593c560f1ae488d2c7c 100644 (file)
@@ -3902,9 +3902,6 @@ get_options(cupsd_job_t *job,             /* I - Job */
   * Then allocate/reallocate the option buffer as needed...
   */
 
-  if (newlength == 0)                  /* This can never happen, but Clang */
-    newlength = 1;                     /* thinks it can... */
-
   if (newlength > optlength || !options)
   {
     if (!options)