1 |
commit: 0e925c511d202257b04b27a6ff2a4563bf2f1469 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 4 09:30:02 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 18:20:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=0e925c51 |
7 |
|
8 |
do_service: Initialize idx to 0 |
9 |
|
10 |
If index is not explicitly specified for service_started_daemon, it will |
11 |
look for daemons by random index. |
12 |
|
13 |
This fixes #100. |
14 |
|
15 |
src/rc/do_service.c | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/src/rc/do_service.c b/src/rc/do_service.c |
19 |
index 3c39d35..a36a09c 100644 |
20 |
--- a/src/rc/do_service.c |
21 |
+++ b/src/rc/do_service.c |
22 |
@@ -36,7 +36,7 @@ int main(int argc, char **argv) |
23 |
bool ok = false; |
24 |
char *service; |
25 |
char *exec; |
26 |
- int idx; |
27 |
+ int idx = 0; |
28 |
RC_SERVICE state, bit; |
29 |
|
30 |
applet = basename_c(argv[0]); |