From 54426d5297126eb824888508ec1f2617b9eba298 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Feb 2004 13:49:29 +0000 Subject: Vladimir N. Oleynik writes: Ok. I found my mistake :( The trivial patch attached. --w vodz --- libbb/getopt_ulflags.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libbb') diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index cca0743bd..39a7d1d29 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; -- cgit v1.2.3