diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index 81d22c3fe..cca0743bd 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c @@ -88,6 +88,8 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...) t_complementaly *on_off; va_list p; + memset(&complementaly, 0, sizeof(complementaly)); + va_start (p, applet_opts); /* skip GNU extension */