mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-02 19:11:25 -05:00
shared/optparser.c: fix handling of options which are enabled by default (bb#1442)
git-svn: trunk@4881
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user