Check that there is a value to setup. Fixes #15470.

2002-04-10  Not Zed  <NotZed@Ximian.com>

        * filter-input.c (validate): Check that there is a value to
        setup.  Fixes #15470.

svn path=/trunk/; revision=16420
This commit is contained in:
Not Zed
2002-04-10 10:27:39 +00:00
committed by Michael Zucci
parent 35cd31644f
commit c5ac2a9e51
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@
2002-04-10 Not Zed <NotZed@Ximian.com>
* filter-input.c (validate): Check that there is a value to
setup. Fixes #15470.
* filtertypes.xml: Added closing ) for "not starts with" subject
rule.
Added closing ) for all the other broken rules too ...

View File

@ -176,7 +176,7 @@ validate (FilterElement *fe)
FilterInput *fi = (FilterInput *)fe;
gboolean valid = TRUE;
if (!strcmp (fi->type, "regex")) {
if (fi->values && !strcmp (fi->type, "regex")) {
regex_t regexpat; /* regex patern */
gint regerr;
char *text;