diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/hashmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c index be37a3659d..0a044b85ad 100644 --- a/src/shared/hashmap.c +++ b/src/shared/hashmap.c @@ -380,14 +380,13 @@ void* hashmap_get(Hashmap *h, const void *key) { bool hashmap_contains(Hashmap *h, const void *key) { unsigned hash; - struct hashmap_entry *e; if (!h) return false; hash = h->hash_func(key) % NBUCKETS; - if (!(e = hash_scan(h, hash, key))) + if (!hash_scan(h, hash, key)) return false; return true; |