diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-05 13:49:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-05 13:49:29 +0000 |
commit | 54426d5297126eb824888508ec1f2617b9eba298 (patch) | |
tree | b388f864443d27158cb47d9b645e96ca78b0610a | |
parent | 31d898fefff8d9e8b0a823bf44afc0eb3f687ec7 (diff) | |
download | busybox-w32-54426d5297126eb824888508ec1f2617b9eba298.tar.gz busybox-w32-54426d5297126eb824888508ec1f2617b9eba298.tar.bz2 busybox-w32-54426d5297126eb824888508ec1f2617b9eba298.zip |
Vladimir N. Oleynik writes:
Ok. I found my mistake :(
The trivial patch attached.
--w
vodz
-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; |