From abc9749d1a7a441a0a602166927c0fe50fd84fb3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 10 Jun 2015 15:28:55 +0000 Subject: Found the B-mid-short bug! Fix it. --- src/s6-rc/s6-rc-compile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 7fb6d81..ab79463 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -199,7 +199,10 @@ static int add_name (before_t *be, char const *srcdir, char const *name, service { .pos = data.len, .kpos = keep.len, - .i = type == SVTYPE_ONESHOT ? genalloc_len(oneshot_t, &be->oneshots) : SVTYPE_LONGRUN ? genalloc_len(longrun_t, &be->longruns) : SVTYPE_BUNDLE ? genalloc_len(bundle_t, &be->bundles) : 0, + .i = type == SVTYPE_ONESHOT ? genalloc_len(oneshot_t, &be->oneshots) : + type == SVTYPE_LONGRUN ? genalloc_len(longrun_t, &be->longruns) : + type == SVTYPE_BUNDLE ? genalloc_len(bundle_t, &be->bundles) : + 0, .type = type } ; unsigned int namelen = str_len(name) ; -- cgit v1.2.3