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
This commit is contained in:
Kjartan Maraas
2007-02-12 09:15:15 +00:00
committed by Kjartan Maraas
parent eed15ba5ab
commit 4890b8cf31
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
2007-02-12 Srinivasa Ragavan <sragavan@novell.com>
** Print migration updates from Ebby Wiselyn

View File

@ -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;
}