diff options
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-filter-search.c | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 964acf2727..82eeb7e846 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2001-11-13 <NotZed@Ximian.com> + + * camel-filter-search.c (get_source): If we have no source string, + then use undefined, which should always evaluate to FALSE. Fix + for #15267. + 2001-11-12 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_get_folder): Added a 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; } |