svn commit: trunk/busybox/libbb

vda at busybox.net vda at busybox.net
Wed Jul 25 17:18:07 UTC 2007


Author: vda
Date: 2007-07-25 10:18:06 -0700 (Wed, 25 Jul 2007)
New Revision: 19258

Log:
getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu



Modified:
   trunk/busybox/libbb/getopt32.c


Changeset:
Modified: trunk/busybox/libbb/getopt32.c
===================================================================
--- trunk/busybox/libbb/getopt32.c	2007-07-25 11:40:09 UTC (rev 19257)
+++ trunk/busybox/libbb/getopt32.c	2007-07-25 17:18:06 UTC (rev 19258)
@@ -355,6 +355,7 @@
 		}
 		/* count == no. of longopts + 1 */
 		long_options = alloca(count * sizeof(*long_options));
+		memset(long_options, 0, count * sizeof(*long_options));
 		i = 0;
 		optstr = applet_long_options;
 		while (--count) {




More information about the busybox-cvs mailing list