mirror of
https://github.com/troglobit/finit.git
synced 2026-11-12 16:51:25 +00:00
Follow-up to 57545e1
Ensure 'rc' is defined for all code branches. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+1
-2
+1
-2
@@ -1139,7 +1139,7 @@ static int service_reload(svc_t *svc)
|
|||||||
const char *id = svc_ident(svc, NULL, 0);
|
const char *id = svc_ident(svc, NULL, 0);
|
||||||
int do_progress = 1;
|
int do_progress = 1;
|
||||||
pid_t lost = 0;
|
pid_t lost = 0;
|
||||||
int rc;
|
int rc = 1;
|
||||||
|
|
||||||
/* Ignore if service is invalid or finit is SIGSTOP'ed */
|
/* Ignore if service is invalid or finit is SIGSTOP'ed */
|
||||||
if (!svc || is_norespawn())
|
if (!svc || is_norespawn())
|
||||||
@@ -1170,7 +1170,6 @@ static int service_reload(svc_t *svc)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
warnx("%s: neither HUP nor reload:script defined, no action.", id);
|
warnx("%s: neither HUP nor reload:script defined, no action.", id);
|
||||||
rc = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
|
|||||||
Reference in new issue
Block a user