]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hashmap: fix minor coding style issue
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 13:01:10 +0000 (22:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 2 Dec 2018 05:34:25 +0000 (06:34 +0100)
src/basic/hashmap.c

index eba56add1fc76a3e013f160a61609031c4006b1d..a59640023fce97af59ecedc0e651bab6351e9fd8 100644 (file)
@@ -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);