From: Michael R Sweet Date: Thu, 24 Feb 2022 01:39:53 +0000 (-0500) Subject: Fix LGTM warning about a dead compare. X-Git-Tag: v2.4.2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5870c526779e22d94f9abad3a8b2fb07c33746fc;p=thirdparty%2Fcups.git Fix LGTM warning about a dead compare. --- diff --git a/cups/getputfile.c b/cups/getputfile.c index 734460bb83..e63396b4d3 100644 --- a/cups/getputfile.c +++ b/cups/getputfile.c @@ -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...