shared/optparser.c: fix handling of options which are enabled by default (bb#1442)

git-svn: trunk@4881
This commit is contained in:
Tomasz Kojm
2009-03-02 16:08:21 +00:00
parent 956fcfcfe3
commit d2ddc54fa7
2 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Mon Mar 2 17:09:33 CET 2009 (tk)
---------------------------------
* shared/optparser.c: fix handling of options which are enabled by default
(bb#1442)
Sun Mar 1 17:21:15 CET 2009 (tk)
---------------------------------
* COPYING.BSD -> COPYING.regex; add COPYING.sha256

View File

@@ -572,6 +572,8 @@ static int optaddarg(struct optstruct *opts, const char *name, const char *strar
pt->active = 1;
if(pt->strarg || (pt->numarg && pt->numarg != -1))
pt->enabled = 1;
else
pt->enabled = 0;
return 0;
}