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:
Joachim Nilsson
2017-10-15 20:47:18 +02:00
parent 888ce56f3e
commit e131b20a6c
+1 -1
View File
@@ -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;