From dd8243a3bad284e47714a407d7d9cfac7133f7a3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Oct 2013 21:37:07 +0100 Subject: bus: don't include the introspected object in list of subobjects --- src/libsystemd-bus/bus-introspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsystemd-bus') 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, " \n", e); free(node); -- cgit v1.2.3-54-g00ecf