mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
Minor, add missing else statement
For completeness, never triggered. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
af88b10322
commit
d3f58b5df0
1 file changed
+2
@@ -1684,6 +1684,8 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
|||||||
memset(svc->env, 0, sizeof(svc->env));
|
memset(svc->env, 0, sizeof(svc->env));
|
||||||
if (file)
|
if (file)
|
||||||
strlcpy(svc->file, file, sizeof(svc->file));
|
strlcpy(svc->file, file, sizeof(svc->file));
|
||||||
|
else
|
||||||
|
memset(svc->file, 0, sizeof(svc->file));
|
||||||
svc->manual = manual;
|
svc->manual = manual;
|
||||||
svc->respawn = respawn;
|
svc->respawn = respawn;
|
||||||
svc->forking = forking;
|
svc->forking = forking;
|
||||||
|
|||||||
Reference in new issue
Block a user