mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +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 */
|
/* count == no. of longopts + 1 */
|
||||||
long_options = alloca(count * sizeof(*long_options));
|
long_options = alloca(count * sizeof(*long_options));
|
||||||
|
memset(long_options, 0, count * sizeof(*long_options));
|
||||||
i = 0;
|
i = 0;
|
||||||
optstr = applet_long_options;
|
optstr = applet_long_options;
|
||||||
while (--count) {
|
while (--count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user