From: Daniel Stenberg Date: Wed, 20 Aug 2025 06:38:57 +0000 (+0200) Subject: bufq: removed "Useless Assignment" X-Git-Tag: curl-8_16_0~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74432bbe6e0f651bbbf115817371c79a6c9f2f81;p=thirdparty%2Fcurl.git bufq: removed "Useless Assignment" Pointed out by CodeSonar. Made a comment instead. Closes #18322 --- diff --git a/lib/bufq.c b/lib/bufq.c index c97640a63c..40d1af0c1d 100644 --- a/lib/bufq.c +++ b/lib/bufq.c @@ -602,8 +602,7 @@ static CURLcode bufq_slurpn(struct bufq *q, size_t max_len, break; } else if(n == 0) { - /* eof */ - result = CURLE_OK; + /* eof, result remains CURLE_OK */ break; } *pnread += n;