[systemd-devel] [PATCH 05/26] hashmap: drop assert(h) from linked_hashmap_next

Michal Schmidt mschmidt at redhat.com
Thu Oct 16 00:50:43 PDT 2014


It's handled just fine by returning NULL.
---
 src/shared/hashmap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c
index c4fde89..8225b8e 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)
-- 
2.1.0



More information about the systemd-devel mailing list