chiark / gitweb /
hashmap: drop assert(h) from hashmap_next()
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 10 Oct 2014 21:30:21 +0000 (23:30 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000 (17:38 +0200)
It's handled just fine by returning NULL.

src/shared/hashmap.c

index c4fde898f88ff3072dcfb7e090da375f249e886b..8225b8ebccd5e742eea1f90b42091c1c48238254 100644 (file)
@@ -945,7 +945,6 @@ void *hashmap_next(Hashmap *h, const void *key) {
         unsigned hash;
         struct hashmap_entry *e;
 
-        assert(h);
         assert(key);
 
         if (!h)