From a299099ba4e2bac95c4d4ba8e54d5cba9d906ae1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 13 Apr 2023 13:06:55 +0200 Subject: [PATCH] hash: fix assigning same value Pointed out by PVS Ref: #10929 Closes #10956 --- lib/hash.c | 1 - 1 file changed, 1 deletion(-) 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; }