mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu
This commit is contained in:
parent
990d0f63ee
commit
f4cee7a174
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user