summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-22 01:51:19 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-22 01:57:30 +0100
commit52c7f2b2d58394c791ea0c6cf706082fd418f5bc (patch)
tree45814eeee659c5b8c52cd8d18918960d249dd463
parentevent: rename sd_event_get() to sd_event_source_get_event() (diff)
downloadsystemd-52c7f2b2d58394c791ea0c6cf706082fd418f5bc.tar.xz
systemd-52c7f2b2d58394c791ea0c6cf706082fd418f5bc.zip
bus: deal with duplicate values from enumerators
-rw-r--r--src/libsystemd-bus/bus-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-objects.c b/src/libsystemd-bus/bus-objects.c
index 7c8a774e73..659f7cec83 100644
--- a/src/libsystemd-bus/bus-objects.c
+++ b/src/libsystemd-bus/bus-objects.c
@@ -135,6 +135,8 @@ static int add_enumerated_to_set(
}
r = set_consume(s, *k);
+ if (r == -EEXIST)
+ r = 0;
}
free(children);