aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-search.c')
-rw-r--r--camel/camel-folder-search.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c
index bb570b8e44..b7578ba887 100644
--- a/camel/camel-folder-search.c
+++ b/camel/camel-folder-search.c
@@ -1109,15 +1109,16 @@ match_words_message(CamelFolder *folder, const char *uid, struct _camel_search_w
{
guint32 mask;
CamelMimeMessage *msg;
+ CamelException x = CAMEL_EXCEPTION_INITIALISER;
int truth;
- msg = camel_folder_get_message(folder, uid, ex);
+ msg = camel_folder_get_message(folder, uid, &x);
if (msg) {
mask = 0;
truth = match_words_1message((CamelDataWrapper *)msg, words, &mask);
camel_object_unref((CamelObject *)msg);
} else {
- camel_exception_clear(ex);
+ camel_exception_clear(&x);
truth = FALSE;
}