]> git.meshlink.io Git - catta/blobdiff - avahi-core/hashmap.c
fix memory corruption in avahi-test
[catta] / avahi-core / hashmap.c
index 24df1f2afa0b790ae576cd764d25933d7f3a315e..4d2fa3cf5d62f57092331b2c472022c2c6f8005b 100644 (file)
@@ -69,6 +69,7 @@ static Entry* entry_get(AvahiHashmap *m, const void *key) {
 
 static void entry_free(AvahiHashmap *m, Entry *e, int stolen) {
     unsigned idx;
+    assert(m);
     assert(e);
 
     idx = m->hash_func(e->key) % HASH_MAP_SIZE;