diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/getopt_ulflags.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index cca0743..39a7d1d 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c @@ -88,8 +88,6 @@ 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 */ @@ -103,7 +101,7 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...) if(c >= (sizeof(flags)*8)) break; on_off->opt = *s; - on_off->switch_on |= (1 << c); + on_off->switch_on = (1 << c); on_off->list_flg = 0; on_off->switch_off = 0; on_off->incongruously = 0; |