summaryrefslogtreecommitdiff
path: root/libbb/getopt_ulflags.c
diff options
context:
space:
mode:
authorEric Andersen2004-02-05 13:49:29 +0000
committerEric Andersen2004-02-05 13:49:29 +0000
commit54426d5297126eb824888508ec1f2617b9eba298 (patch)
treeb388f864443d27158cb47d9b645e96ca78b0610a /libbb/getopt_ulflags.c
parent31d898fefff8d9e8b0a823bf44afc0eb3f687ec7 (diff)
downloadbusybox-54426d5297126eb824888508ec1f2617b9eba298.zip
busybox-54426d5297126eb824888508ec1f2617b9eba298.tar.gz
Vladimir N. Oleynik writes:
Ok. I found my mistake :( The trivial patch attached. --w vodz
Diffstat (limited to 'libbb/getopt_ulflags.c')
-rw-r--r--libbb/getopt_ulflags.c4
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;