From: Daniel Stenberg Date: Mon, 20 Oct 2025 07:12:09 +0000 (+0200) Subject: curl_get_line: the final return cannot be reached X-Git-Tag: curl-8_17_0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=104299195e1676488f3c156a24b134fb33cf6e06;p=thirdparty%2Fcurl.git curl_get_line: the final return cannot be reached Follow-up to 769ccb4d4261a75c8a4236f Pointed out by CodeSonar Closes #19154 --- diff --git a/lib/curl_get_line.c b/lib/curl_get_line.c index b1b4021221..d5ab7b8427 100644 --- a/lib/curl_get_line.c +++ b/lib/curl_get_line.c @@ -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 */