hash: fix assigning same value

Pointed out by PVS

Ref: #10929
Closes #10956
This commit is contained in:
Daniel Stenberg 2023-04-13 13:06:55 +02:00
parent c79356d852
commit a299099ba4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}