summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/service.c b/service.c
index 7db1c4a..ffbc584 100644
--- a/service.c
+++ b/service.c
@@ -212,6 +212,9 @@ service_dump(struct service *s, int verbose)
struct service_instance *in;
void *c, *i;
+ if (avl_is_empty(&s->instances.avl))
+ return;
+
c = blobmsg_open_table(&b, s->name);
i = blobmsg_open_table(&b, "instances");
if (verbose && s->trigger)