mirror of
https://github.com/systemd/systemd.git
synced 2025-03-01 08:58:29 +03:00
shared/bus-util: fix misleading error handling
set_put()/set_ensure_put() return 0, not -EEXIST, if the entry is already found in the set. In this case this does not make any difference, but let's not confuse the reader.
This commit is contained in:
parent
e2ab8e09c8
commit
6cd55d6f74
@ -614,7 +614,7 @@ int bus_message_print_all_properties(
|
||||
|
||||
if (found_properties) {
|
||||
r = set_ensure_put(found_properties, &string_hash_ops, name);
|
||||
if (r < 0 && r != -EEXIST)
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user