aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-03-24 00:32:25 -0500
committerRob Landley <rob@landley.net>2008-03-24 00:32:25 -0500
commitaba353e33169e3842723b49c21e32bc6f05aac10 (patch)
tree6ed1f38d8de30c29f7f528efe8c8655f0270d50b
parentde6952793af86392905bbd190594c4232bb7ca71 (diff)
downloadtoybox-aba353e33169e3842723b49c21e32bc6f05aac10.tar.gz
Enabling debugging should not change behavior. Oops.
-rw-r--r--lib/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/args.c b/lib/args.c
index 057097aa..225e0c0d 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -177,7 +177,7 @@ void get_optflags(void)
// Parse rest of opts into array
while (*options) {
- char *temp = "+~!";
+ char *temp;
// Allocate a new option entry when necessary
if (!gof.this) {
@@ -217,7 +217,7 @@ void get_optflags(void)
int i=0, idx = temp - plustildenot;
struct opts *opt;
- if (CFG_TOYBOX_DEBUG && !*++options)
+ if (!*++options && CFG_TOYBOX_DEBUG)
error_exit("Bug2 in get_opt");
// Find this option flag (in previously parsed struct opt)
for (opt = gof.this; ; opt = opt->next) {