projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45cd089
)
run_parts: I was wrong, NULL termination is already done because
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 28 Mar 2007 22:05:38 +0000
(22:05 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 28 Mar 2007 22:05:38 +0000
(22:05 -0000)
G is pre-initialized to 0.
debianutils/run_parts.c
patch
|
blob
|
history
diff --git
a/debianutils/run_parts.c
b/debianutils/run_parts.c
index 7d41c691341cca7bb73afe563ce17f0c4024a6dc..b41045a36dbb724a46fd725c6864d5d4596480f3 100644
(file)
--- 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 */