changeset 268:56a29fb3c9f6

Enabling debugging should not change behavior. Oops.
author Rob Landley <rob@landley.net>
date Mon, 24 Mar 2008 00:32:25 -0500
parents 784bc9b0d6df
children 7b3d9594bf9c
files lib/args.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/args.c	Sun Feb 24 03:48:06 2008 -0600
+++ b/lib/args.c	Mon Mar 24 00:32:25 2008 -0500
@@ -177,7 +177,7 @@
 
 		// 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 @@
 				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) {