]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_get_line: the final return cannot be reached
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Oct 2025 07:12:09 +0000 (09:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Oct 2025 08:30:36 +0000 (10:30 +0200)
Follow-up to 769ccb4d4261a75c8a4236f

Pointed out by CodeSonar
Closes #19154

lib/curl_get_line.c

index b1b40212213d079f9ec333c8b47e58784a063966..d5ab7b84272001d7cd9e4f27d64b2d82162ad59b 100644 (file)
@@ -68,7 +68,7 @@ CURLcode Curl_get_line(struct dynbuf *buf, FILE *input, bool *eof)
       return appendnl(buf);
     /* otherwise get next line to append */
   }
-  return CURLE_FAILED_INIT;
+  /* UNREACHABLE */
 }
 
 #endif /* if not disabled */