Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Tue, 11 Oct 2016 15:31:18
Message-Id: 1476199802.78146b0e14cb57dda8a3aed3d4f8d6b1db7a3c7e.williamh@OpenRC
1 commit: 78146b0e14cb57dda8a3aed3d4f8d6b1db7a3c7e
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: Tue Oct 11 15:30:02 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=78146b0e
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]);