summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-29 21:37:07 +0100
committerLennart Poettering <lennart@poettering.net>2013-10-30 02:08:57 +0100
commitdd8243a3bad284e47714a407d7d9cfac7133f7a3 (patch)
treed8778e4503fbf345dc078369cd405016a122f08d /src
parent0aa5b4d1f7247e9e5ff2bd59f287196e20c03296 (diff)
bus: don't include the introspected object in list of subobjects
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/bus-introspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-introspect.c b/src/libsystemd-bus/bus-introspect.c
index 92deb75dfd..9a49e431c0 100644
--- a/src/libsystemd-bus/bus-introspect.c
+++ b/src/libsystemd-bus/bus-introspect.c
@@ -63,7 +63,7 @@ int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefi
const char *e;
e = object_path_startswith(node, prefix);
- if (e)
+ if (e && e[0])
fprintf(i->f, " <node name=\"%s\"/>\n", e);
free(node);