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.
This commit is contained in:
parent
deaae7ab5c
commit
78146b0e14
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user