summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-objects.c
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 /src/libsystemd-bus/bus-objects.c
parentadcc4ca30dc8ca0cddfcab64ad2eab6f6ab6fe21 (diff)
bus: deal with duplicate values from enumerators
Diffstat (limited to 'src/libsystemd-bus/bus-objects.c')
-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);