From 77b4c60a69f9ce442e3efffa416045305d9de764 Mon Sep 17 00:00:00 2001 From: 3 Date: Tue, 13 Nov 2001 22:51:46 +0000 Subject: If we have no source string, then use undefined, which should always 2001-11-13 * camel-filter-search.c (get_source): If we have no source string, then use undefined, which should always evaluate to FALSE. Fix for #15267. svn path=/trunk/; revision=14688 --- camel/camel-filter-search.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'camel/camel-filter-search.c') diff --git a/camel/camel-filter-search.c b/camel/camel-filter-search.c index 1ac0b46331..430f614349 100644 --- a/camel/camel-filter-search.c +++ b/camel/camel-filter-search.c @@ -419,7 +419,6 @@ get_source (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessag char *src = NULL; char *tmp; - r = e_sexp_result_new (f, ESEXP_RES_STRING); if (fms->source) { CamelURL *url; @@ -439,8 +438,13 @@ get_source (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessag if (tmp) *tmp = '\0'; } - - r->value.string = src; + + if (src) { + r = e_sexp_result_new (f, ESEXP_RES_STRING); + r->value.string = src; + } else { + r = e_sexp_result_new (f, ESEXP_RES_UNDEFINED); + } return r; } -- cgit v1.2.3