]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hash: fix assigning same value
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Apr 2023 11:06:55 +0000 (13:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Apr 2023 07:26:26 +0000 (09:26 +0200)
Pointed out by PVS

Ref: #10929
Closes #10956

lib/hash.c

index 06ce92cbd5f3146c1ecbb6272f5422bf9775fe9f..30f28e2352a93de579aabd9f6e9e74ef0f9106e4 100644 (file)
@@ -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;
 }