run_parts: I was wrong, NULL termination is already done because
G is pre-initialized to 0.
This commit is contained in:
parent
45cd089df1
commit
c7d4b98cbd
@ -136,7 +136,7 @@ int run_parts_main(int argc, char **argv)
|
||||
arg_list = llist_rev(arg_list); /* XXX: getopt32 appends them */
|
||||
for (tmp = 1; arg_list; arg_list = arg_list->link, tmp++)
|
||||
G.cmd[tmp] = arg_list->data;
|
||||
G.cmd[tmp] = NULL;
|
||||
/* G.cmd[tmp] = NULL; - G is already zeroed out */
|
||||
if (!recursive_action(argv[argc - 1],
|
||||
TRUE, /* recurse */
|
||||
TRUE, /* follow links */
|
||||
|
Loading…
Reference in New Issue
Block a user