# HG changeset patch # User tuomov # Date 964449492 -7200 # Node ID 3e498ec7abcd95a006fce06d87514a6d49d67ba7 # Parent afabe75987eb45f6d0d2fa54d82cab5061bc82d7 trunk: changeset 22 Fixed a bug with OPT_NO_DASH diff -r afabe75987eb -r 3e498ec7abcd optparser.c --- a/optparser.c Fri Jul 21 21:19:37 2000 +0200 +++ b/optparser.c Mon Jul 24 16:38:12 2000 +0200 @@ -146,6 +146,7 @@ dash=FALSE; if(o_mode!=OPTP_NO_DASH) RET(OPT_ID_ARGUMENT); + p2=p; }else if(*(p+1)=='-'){ /* --foo */ if(*(p+2)=='\0'){