aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-25 17:18:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-25 17:18:06 +0000
commitf4cee7a1746ac048b09ce51538f01d5440a180a3 (patch)
treeabdeb3c4645e7417fb28299c0debd980c7bd4227 /libbb
parent990d0f63eeb502c8762076e5c5499196e09cba55 (diff)
downloadbusybox-w32-f4cee7a1746ac048b09ce51538f01d5440a180a3.tar.gz
busybox-w32-f4cee7a1746ac048b09ce51538f01d5440a180a3.tar.bz2
busybox-w32-f4cee7a1746ac048b09ce51538f01d5440a180a3.zip
getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 107102329..c7c8cb79c 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -355,6 +355,7 @@ getopt32(int argc, char **argv, const char *applet_opts, ...)
355 } 355 }
356 /* count == no. of longopts + 1 */ 356 /* count == no. of longopts + 1 */
357 long_options = alloca(count * sizeof(*long_options)); 357 long_options = alloca(count * sizeof(*long_options));
358 memset(long_options, 0, count * sizeof(*long_options));
358 i = 0; 359 i = 0;
359 optstr = applet_long_options; 360 optstr = applet_long_options;
360 while (--count) { 361 while (--count) {