summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 15:28:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 15:28:55 +0000
commitabc9749d1a7a441a0a602166927c0fe50fd84fb3 (patch)
tree7a0dbb09ddf79a95af4058c3e0c61b4807bbf2b8 /src
parentd28702336de31dbc06363913fdc3dd3df7fe9550 (diff)
downloads6-rc-abc9749d1a7a441a0a602166927c0fe50fd84fb3.tar.xz
Found the B-mid-short bug! Fix it.
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc-compile.c5
1 files changed, 4 insertions, 1 deletions
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) ;