projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd9527
)
hashmap: fix minor coding style issue
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 13:01:10 +0000
(22:01 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 2 Dec 2018 05:34:25 +0000
(06:34 +0100)
src/basic/hashmap.c
patch
|
blob
|
history
diff --git
a/src/basic/hashmap.c
b/src/basic/hashmap.c
index eba56add1fc76a3e013f160a61609031c4006b1d..a59640023fce97af59ecedc0e651bab6351e9fd8 100644
(file)
--- a/
src/basic/hashmap.c
+++ b/
src/basic/hashmap.c
@@
-848,7
+848,7
@@
int internal_set_ensure_allocated(Set **s, const struct hash_ops *hash_ops HASH
static void hashmap_free_no_clear(HashmapBase *h) {
assert(!h->has_indirect);
- assert(
!h->n_direct_entries
);
+ assert(
h->n_direct_entries == 0
);
#if ENABLE_DEBUG_HASHMAP
assert_se(pthread_mutex_lock(&hashmap_debug_list_mutex) == 0);