minor fixups for #32212

Fix minor post merge comments
This commit is contained in:
Matteo Croce
2024-09-13 07:23:07 +02:00
committed by Lennart Poettering
parent cf94f513f0
commit 64e03ca8bf
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -65,8 +65,11 @@ static int shadow_update(Hashmap **shadow, const char *property, const char *val
cur_v = hashmap_remove2(*shadow, k, (void**)&cur_k);
r = hashmap_ensure_put(shadow, &path_hash_ops_free_free, k, v);
if (r < 0)
if (r < 0) {
assert(r != -EEXIST);
return r;
}
TAKE_PTR(k);
TAKE_PTR(v);