diff --git a/codes/c/chapter_hashing/hash_map_chaining.c b/codes/c/chapter_hashing/hash_map_chaining.c index 94e7202e0..fec4778ee 100644 --- a/codes/c/chapter_hashing/hash_map_chaining.c +++ b/codes/c/chapter_hashing/hash_map_chaining.c @@ -88,6 +88,7 @@ const char *get(hashMapChaining *hashmap, const int key) { if (node->key == key) { return node->val; } + node = node->next; } return NULL; }