aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2007-02-12 17:15:15 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2007-02-12 17:15:15 +0800
commit4890b8cf3142282b5a3fdd63b71dc660dca5ef5b (patch)
treedeb386e4776e1fcc5da19ec64c0ff89682912f0c /mail/em-folder-browser.c
parenteed15ba5ab24d540f9cb5eb94d9e4741820fe57b (diff)
downloadgsoc2013-evolution-4890b8cf3142282b5a3fdd63b71dc660dca5ef5b.tar.gz
gsoc2013-evolution-4890b8cf3142282b5a3fdd63b71dc660dca5ef5b.tar.zst
gsoc2013-evolution-4890b8cf3142282b5a3fdd63b71dc660dca5ef5b.zip
Add NULL check before calling strcmp(). Fixes a crash reported in bug
2007-02-12 Kjartan Maraas <kmaraas@gnome.org> * em-folder-browser.c: (emfb_search_search_activated): Add NULL check before calling strcmp(). Fixes a crash reported in bug #382155. svn path=/trunk/; revision=33204
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index c94baeb759..329af0b290 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -1057,7 +1057,7 @@ emfb_search_search_activated(ESearchBar *esb, EMFolderBrowser *emfb)
g_object_get (esb, "query", &search_word, NULL);
- if (efb->all_account_search_vf && !strcmp (search_word, ((CamelVeeFolder *) efb->all_account_search_vf)->expression) ) {
+ if (search_word && efb->all_account_search_vf && !strcmp (search_word, ((CamelVeeFolder *) efb->all_account_search_vf)->expression) ) {
/* No real search apart from the existing one */
break;
}