]> git.ipfire.org Git - thirdparty/systemd.git/commit
hashmap: allow NULL key in ordered_hashmap_next() 289/head
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 16 Jun 2015 13:46:40 +0000 (15:46 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 17 Jun 2015 15:28:44 +0000 (17:28 +0200)
commit8f8a5213a9ad89f1ebab6efb19377ed9df512ee6
tree75c5589554d74f3b446489f559f2f33e530ad1a0
parent49e440cdc9782ea615e4b6a4dd21e12716a5b675
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.
src/basic/hashmap.c
src/test/test-hashmap.c