From 74432bbe6e0f651bbbf115817371c79a6c9f2f81 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Aug 2025 08:38:57 +0200 Subject: [PATCH] bufq: removed "Useless Assignment" Pointed out by CodeSonar. Made a comment instead. Closes #18322 --- lib/bufq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;