mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
service_register(): Make sure to initialize username to NULL
Follow-up to 7d9f873, which converted this from a function argument to a
local variable.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -512,7 +512,7 @@ int service_register(int type, char *line, struct timeval *mtime)
|
||||
int forking = 0;
|
||||
#endif
|
||||
int log = 0, levels = 0;
|
||||
char *username;
|
||||
char *username = NULL;
|
||||
char *service = NULL, *proto = NULL, *ifaces = NULL;
|
||||
char *cmd, *desc, *runlevels = NULL, *cond = NULL;
|
||||
svc_t *svc;
|
||||
|
||||
Reference in New Issue
Block a user