# HG changeset patch # User Rob Landley # Date 1367299861 18000 # Node ID 5735c500f835540a5465adf7f1f4fa0286e6c54c # Parent c7e7b159568dd89dc685429b983e8e7667be264e Fix bare longopts to set unique optflag bits. diff -r c7e7b159568d -r 5735c500f835 lib/args.c --- a/lib/args.c Mon Apr 29 16:00:40 2013 -0500 +++ b/lib/args.c Tue Apr 30 00:31:01 2013 -0500 @@ -245,7 +245,10 @@ options = end; // Mark this struct opt as used, even when no short opt. - if (!new->c) new->c = -1; + if (!new->c) { + new->c = -1; + new = 0; + } // If this is the start of a new option that wasn't a longopt,