]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix LGTM warning about a dead compare.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Feb 2022 01:39:53 +0000 (20:39 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Feb 2022 01:39:53 +0000 (20:39 -0500)
cups/getputfile.c

index 734460bb83ddc1c976a94eb682232edc70e2a8ad..e63396b4d31fc45d6104bbefec4c0be497970559 100644 (file)
@@ -419,6 +419,7 @@ cupsPutFd(http_t     *http,         /* I - Connection to server or @code CUPS_HTTP_DEFA
       DEBUG_printf(("2cupsPutFd: retry on status %d", status));
 
       retries ++;
+      status = HTTP_STATUS_NONE;
 
       /* Flush any error message... */
       httpFlush(http);
@@ -487,8 +488,7 @@ cupsPutFd(http_t     *http,         /* I - Connection to server or @code CUPS_HTTP_DEFA
     }
 #endif /* HAVE_TLS */
   }
-  while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED ||
-         (status == HTTP_STATUS_ERROR && retries < 2));
+  while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED || status == HTTP_STATUS_NONE);
 
  /*
   * See if we actually put the file or an error...