From f4cee7a1746ac048b09ce51538f01d5440a180a3 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Jul 2007 17:18:06 +0000 Subject: [PATCH] getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu --- libbb/getopt32.c | 1 + 1 file changed, 1 insertion(+) 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, ...) } /* 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) { -- 2.25.1