diff options
author | Andreas Gampe <agampe@google.com> | 2015-02-03 11:20:49 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-02-03 11:31:11 -0800 |
commit | 0ab46c9e2b5e664ee9c6dee024c2020114317421 (patch) | |
tree | 906dd8e03f8a126aa72d3fabda624f179ff10566 /init | |
parent | 6a728fde77d1367318c79e5b182f0cb316872a37 (diff) | |
download | system_core-0ab46c9e2b5e664ee9c6dee024c2020114317421.zip system_core-0ab46c9e2b5e664ee9c6dee024c2020114317421.tar.gz system_core-0ab46c9e2b5e664ee9c6dee024c2020114317421.tar.bz2 |
Init: Fix literal
This is a literal 0 implicitly converted to a NULL.
Change-Id: I0573e85eb0578f938877c4bec79054081c27e661
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 096d898..8bb6da0 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); |