From 0ab46c9e2b5e664ee9c6dee024c2020114317421 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 3 Feb 2015 11:20:49 -0800 Subject: [PATCH] Init: Fix literal This is a literal 0 implicitly converted to a NULL. Change-Id: I0573e85eb0578f938877c4bec79054081c27e661 --- init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.c b/init/init.c index 096d89820..8bb6da078 100644 --- a/init/init.c +++ b/init/init.c @@ -349,7 +349,7 @@ void service_start(struct service *svc, const char *dynamic_args) if (arg_idx == INIT_PARSER_MAXARGS) break; } - arg_ptrs[arg_idx] = '\0'; + arg_ptrs[arg_idx] = NULL; execve(svc->args[0], (char**) arg_ptrs, (char**) ENV); } _exit(127);