commit | f4cee7a1746ac048b09ce51538f01d5440a180a3 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jul 25 17:18:06 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jul 25 17:18:06 2007 +0000 |
tree | abdeb3c4645e7417fb28299c0debd980c7bd4227 | |
parent | 990d0f63eeb502c8762076e5c5499196e09cba55 [diff] [blame] |
getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index 1071023..c7c8cb7 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c
@@ -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) {