changeset 1058:de0ecfb36b7c draft

Fix [-group] argument dropping.
author Rob Landley <rob@landley.net>
date Mon, 09 Sep 2013 02:44:02 -0500
parents 242c5de2bb22
children ef72a16f4b3a
files lib/args.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/args.c	Tue Sep 03 18:43:32 2013 -0500
+++ b/lib/args.c	Mon Sep 09 02:44:02 2013 -0500
@@ -128,8 +128,8 @@
     struct opts *clr;
     unsigned i = 1;
 
-    for (clr=gof->opts, i=1; ; clr = clr->next, i<<=1)
-      if (clr->arg && (i & toys.optflags)) clr->arg = 0;
+    for (clr=gof->opts, i=1; clr; clr = clr->next, i<<=1)
+      if (clr->arg && (i & toys.optflags)) *clr->arg = 0;
     toys.optflags &= ~opt->dex[0];
   }
   toys.optflags |= opt->dex[1];