fix get() in hash_map_chaining.c (#845)

Fix get function.
pull/858/head
FreddieLi 1 year ago committed by GitHub
parent da5ef293d9
commit 61eca92055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,6 +88,7 @@ const char *get(hashMapChaining *hashmap, const int key) {
if (node->key == key) { if (node->key == key) {
return node->val; return node->val;
} }
node = node->next;
} }
return NULL; return NULL;
} }

Loading…
Cancel
Save