mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
basic/hashmap: add comment
Coverity complains that the check is suspicious. Add a comment to help the reader.
This commit is contained in:
@@ -774,7 +774,7 @@ static struct HashmapBase* hashmap_base_new(const struct hash_ops *hash_ops, enu
|
||||
HashmapBase *h;
|
||||
const struct hashmap_type_info *hi = &hashmap_type_info[type];
|
||||
|
||||
bool use_pool = mempool_enabled && mempool_enabled();
|
||||
bool use_pool = mempool_enabled && mempool_enabled(); /* mempool_enabled is a weak symbol */
|
||||
|
||||
h = use_pool ? mempool_alloc0_tile(hi->mempool) : malloc0(hi->head_size);
|
||||
if (!h)
|
||||
|
||||
Reference in New Issue
Block a user