diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-02-05 13:49:29 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-02-05 13:49:29 +0000 |
commit | 3d0a92d81ab9cec09d50f79743536a36190d9144 (patch) | |
tree | b388f864443d27158cb47d9b645e96ca78b0610a /libbb | |
parent | d246db9a1e93668eec5730ef47941a8b5330d23d (diff) | |
download | busybox-w32-3d0a92d81ab9cec09d50f79743536a36190d9144.tar.gz busybox-w32-3d0a92d81ab9cec09d50f79743536a36190d9144.tar.bz2 busybox-w32-3d0a92d81ab9cec09d50f79743536a36190d9144.zip |
Vladimir N. Oleynik writes:
Ok. I found my mistake :(
The trivial patch attached.
--w
vodz
git-svn-id: svn://busybox.net/trunk/busybox@8410 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 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, ...) | |||
88 | t_complementaly *on_off; | 88 | t_complementaly *on_off; |
89 | va_list p; | 89 | va_list p; |
90 | 90 | ||
91 | memset(&complementaly, 0, sizeof(complementaly)); | ||
92 | |||
93 | va_start (p, applet_opts); | 91 | va_start (p, applet_opts); |
94 | 92 | ||
95 | /* skip GNU extension */ | 93 | /* skip GNU extension */ |
@@ -103,7 +101,7 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...) | |||
103 | if(c >= (sizeof(flags)*8)) | 101 | if(c >= (sizeof(flags)*8)) |
104 | break; | 102 | break; |
105 | on_off->opt = *s; | 103 | on_off->opt = *s; |
106 | on_off->switch_on |= (1 << c); | 104 | on_off->switch_on = (1 << c); |
107 | on_off->list_flg = 0; | 105 | on_off->list_flg = 0; |
108 | on_off->switch_off = 0; | 106 | on_off->switch_off = 0; |
109 | on_off->incongruously = 0; | 107 | on_off->incongruously = 0; |