chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf3d3e2
)
hashmap: drop assert(h) from hashmap_next()
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 10 Oct 2014 21:30:21 +0000
(23:30 +0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000
(17:38 +0200)
It's handled just fine by returning NULL.
src/shared/hashmap.c
patch
|
blob
|
history
diff --git
a/src/shared/hashmap.c
b/src/shared/hashmap.c
index c4fde898f88ff3072dcfb7e090da375f249e886b..8225b8ebccd5e742eea1f90b42091c1c48238254 100644
(file)
--- 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)