aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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;