From: Yu Watanabe Date: Sun, 25 Nov 2018 13:01:10 +0000 (+0900) Subject: hashmap: fix minor coding style issue X-Git-Tag: v240~151^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee05335f43698fc89e0dc733992c6e94b64bc8f3;p=thirdparty%2Fsystemd.git hashmap: fix minor coding style issue --- diff --git a/src/basic/hashmap.c b/src/basic/hashmap.c index eba56add1fc..a59640023fc 100644 --- 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);