diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-06-16 15:46:40 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-06-17 17:28:44 +0200 |
commit | 8f8a5213a9ad89f1ebab6efb19377ed9df512ee6 (patch) | |
tree | 75c5589554d74f3b446489f559f2f33e530ad1a0 /src/basic | |
parent | 49e440cdc9782ea615e4b6a4dd21e12716a5b675 (diff) |
hashmap: allow NULL key in ordered_hashmap_next()
There is no reason to require key to be non-NULL.
Change test_ordered_hashmap_next() to use trivial_hash_ops in order to
test NULL key too.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/hashmap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/hashmap.c b/src/basic/hashmap.c index 0ee2f3bd31..e5f05f36f8 100644 --- a/src/basic/hashmap.c +++ b/src/basic/hashmap.c @@ -1798,8 +1798,6 @@ void *ordered_hashmap_next(OrderedHashmap *h, const void *key) { struct ordered_hashmap_entry *e; unsigned hash, idx; - assert(key); - if (!h) return NULL; |