aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-04-10 18:27:39 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-04-10 18:27:39 +0800
commitc5ac2a9e510fa9e53683e4f270c82e0296da8043 (patch)
tree134b3e829fcc7dd450d3215df0c4adaa4797e5ba
parent35cd31644f6a1c44bfa54d12e199ec9e95edab6f (diff)
downloadgsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar.gz
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar.bz2
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar.lz
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar.xz
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.tar.zst
gsoc2013-evolution-c5ac2a9e510fa9e53683e4f270c82e0296da8043.zip
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
-rw-r--r--filter/ChangeLog3
-rw-r--r--filter/filter-input.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index fb65edaf8a..ac3061ca73 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -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 ...
diff --git a/filter/filter-input.c b/filter/filter-input.c
index 2252f95157..8343abbfa8 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -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;