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

This commit is contained in:
Denis Vlasenko 2007-07-25 17:18:06 +00:00
parent 990d0f63ee
commit f4cee7a174

View File

@ -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) {