Browse Source

hash: fix assigning same value

Pointed out by PVS

Ref: #10929
Closes #10956
Daniel Stenberg 1 year ago
parent
commit
a299099ba4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      lib/hash.c

+ 0 - 1
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;
 }