diff options
-rw-r--r-- | src/daemontools-extras/s6-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index 18a50be..a8ad950 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -1232,7 +1232,7 @@ int main (int argc, char const *const *argv) mask = ~mask & 0666 ; script_firstpass(argv, &sellen, &actlen, &scriptlen, &gflags) ; { - sel_t selections[sellen] ; + sel_t selections[sellen ? sellen : 1] ; act_t actions[actlen] ; scriptelem_t script[scriptlen] ; logdir_t logdirblob[llen] ; |