guard against NULL keys

2003-03-27  JP Rosevear  <jpr@ximian.com>

	* e-account-list.c (e_account_list_find): guard against NULL keys

svn path=/trunk/; revision=20554
This commit is contained in:
JP Rosevear
2003-03-27 22:31:19 +00:00
committed by JP Rosevear
parent c6ed3eedc8
commit f4d239adc8
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-03-27 JP Rosevear <jpr@ximian.com>
* e-account-list.c (e_account_list_find): guard against NULL keys
2003-03-25 Dan Winship <danw@ximian.com>
* e-dialog-utils.c (e_notice): Move this here from gal. Use

View File

@ -420,6 +420,9 @@ e_account_list_find(EAccountList *accounts, e_account_find_t type, const char *k
/* this could use a callback for more flexibility ...
... but this makes the common cases easier */
if (!key)
return NULL;
for (it = e_list_get_iterator ((EList *)accounts);
e_iterator_is_valid (it);
e_iterator_next (it)) {