From: Michal Schmidt Date: Fri, 10 Oct 2014 21:30:21 +0000 (+0200) Subject: hashmap: drop assert(h) from hashmap_next() X-Git-Tag: v217~124 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dd0124f6cb6ff7da1ce8be23ec7e1137fe15958d;p=elogind.git hashmap: drop assert(h) from hashmap_next() It's handled just fine by returning NULL. --- diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c index c4fde898f..8225b8ebc 100644 --- a/src/shared/hashmap.c +++ b/src/shared/hashmap.c @@ -945,7 +945,6 @@ void *hashmap_next(Hashmap *h, const void *key) { unsigned hash; struct hashmap_entry *e; - assert(h); assert(key); if (!h)