chiark / gitweb /
hashmap: allow NULL key in ordered_hashmap_next()
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 16 Jun 2015 13:46:40 +0000 (15:46 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:02 +0000 (10:03 +0100)
commitb0c8498704d91b644ee3203177b0f602ab13826e
tree3a9f020cbddd10effd40de7aeebd56460c85c90f
parent137eba39fdc6c27c718b1e9a35ea8540103fe760
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/shared/hashmap.c