summaryrefslogtreecommitdiff
path: root/debianutils/run_parts.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-28 22:05:38 +0000
committerDenis Vlasenko2007-03-28 22:05:38 +0000
commitc7d4b98cbdbc9b9b5d4150cda32881b12e561b96 (patch)
tree21a0ba78df9069fb19f1dc850240bd11b597bc5b /debianutils/run_parts.c
parent45cd089df1d0f519f863baed46f8f3afd8b19593 (diff)
downloadbusybox-c7d4b98cbdbc9b9b5d4150cda32881b12e561b96.zip
busybox-c7d4b98cbdbc9b9b5d4150cda32881b12e561b96.tar.gz
run_parts: I was wrong, NULL termination is already done because
G is pre-initialized to 0.
Diffstat (limited to 'debianutils/run_parts.c')
-rw-r--r--debianutils/run_parts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 7d41c69..b41045a 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -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 */