diff options
author | Sven Wegener <swegener@gentoo.org> | 2016-10-04 11:30:02 +0200 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-10-11 10:30:02 -0500 |
commit | 78146b0e14cb57dda8a3aed3d4f8d6b1db7a3c7e (patch) | |
tree | 9ecf76a5c7d9eb3d4f5865a48815298f48f11100 /src/rc/do_service.c | |
parent | deaae7ab5c499191426cec81f6e803c972f0cca3 (diff) |
do_service: Initialize idx to 0
If index is not explicitly specified for service_started_daemon, it will
look for daemons by random index.
This fixes #100.
Diffstat (limited to 'src/rc/do_service.c')
-rw-r--r-- | src/rc/do_service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/do_service.c b/src/rc/do_service.c index 3c39d35f..a36a09ca 100644 --- a/src/rc/do_service.c +++ b/src/rc/do_service.c @@ -36,7 +36,7 @@ int main(int argc, char **argv) bool ok = false; char *service; char *exec; - int idx; + int idx = 0; RC_SERVICE state, bit; applet = basename_c(argv[0]); |