svn commit: trunk/busybox/debianutils

vda at busybox.net vda at busybox.net
Wed Mar 28 22:05:38 UTC 2007


Author: vda
Date: 2007-03-28 15:05:38 -0700 (Wed, 28 Mar 2007)
New Revision: 18268

Log:
run_parts: I was wrong, NULL termination is already done because
G is pre-initialized to 0.


Modified:
   trunk/busybox/debianutils/run_parts.c


Changeset:
Modified: trunk/busybox/debianutils/run_parts.c
===================================================================
--- trunk/busybox/debianutils/run_parts.c	2007-03-28 22:04:04 UTC (rev 18267)
+++ trunk/busybox/debianutils/run_parts.c	2007-03-28 22:05:38 UTC (rev 18268)
@@ -136,7 +136,7 @@
 	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 */




More information about the busybox-cvs mailing list