aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-08 03:19:48 +0800
committerDan Winship <danw@src.gnome.org>2000-12-08 03:19:48 +0800
commit97f16d13a4083faa895e2530f08a98dcc4b584ad (patch)
tree2c2fa75a46327923ecf52b70a1236ad230c7cdc6 /mail/mail-autofilter.c
parent1dd2597727c3db69f62fa8ea3f8a4132a57040e3 (diff)
downloadgsoc2013-evolution-97f16d13a4083faa895e2530f08a98dcc4b584ad.tar.gz
gsoc2013-evolution-97f16d13a4083faa895e2530f08a98dcc4b584ad.tar.zst
gsoc2013-evolution-97f16d13a4083faa895e2530f08a98dcc4b584ad.zip
Add some g_return_if_fail()s to protect from crashes until the code to
* mail-callbacks.c: (various) * folder-browser.c (filter_mlist): * mail-autofilter.c (filter_gui_add_from_message): * mail-vfolder.c (vfolder_gui_add_from_message): Add some g_return_if_fail()s to protect from crashes until the code to enable/disable commands based on how many messages are selected is done. svn path=/trunk/; revision=6840
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r--mail/mail-autofilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index d1a1795f48..4c354edfc8 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -272,6 +272,8 @@ filter_gui_add_from_message (CamelMimeMessage *msg, int flags)
char *userrules, *systemrules;
FilterRule *rule;
extern char *evolution_dir;
+
+ g_return_if_fail (msg != NULL);
fc = filter_context_new ();
userrules = g_strdup_printf ("%s/filters.xml", evolution_dir);