From: Daniel Stenberg Date: Thu, 13 Apr 2023 11:06:55 +0000 (+0200) Subject: hash: fix assigning same value X-Git-Tag: curl-8_1_0~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a299099ba4e2bac95c4d4ba8e54d5cba9d906ae1;p=thirdparty%2Fcurl.git hash: fix assigning same value Pointed out by PVS Ref: #10929 Closes #10956 --- diff --git a/lib/hash.c b/lib/hash.c index 06ce92cbd5..30f28e2352 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -330,7 +330,6 @@ Curl_hash_next_element(struct Curl_hash_iterator *iter) struct Curl_hash_element *he = iter->current_element->ptr; return he; } - iter->current_element = NULL; return NULL; }