aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-account-list.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-03-28 06:31:19 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-03-28 06:31:19 +0800
commitf4d239adc848a294d3179afddc1e45977631c02e (patch)
tree88b5d890129bbbbd231723ad355d43211c017d0e /e-util/e-account-list.c
parentc6ed3eedc881b57ac7d767a282413db7966f8a8b (diff)
downloadgsoc2013-evolution-f4d239adc848a294d3179afddc1e45977631c02e.tar.gz
gsoc2013-evolution-f4d239adc848a294d3179afddc1e45977631c02e.tar.zst
gsoc2013-evolution-f4d239adc848a294d3179afddc1e45977631c02e.zip
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
Diffstat (limited to 'e-util/e-account-list.c')
-rw-r--r--e-util/e-account-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-account-list.c b/e-util/e-account-list.c
index 7d132bf033..825601f2af 100644
--- a/e-util/e-account-list.c
+++ b/e-util/e-account-list.c
@@ -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)) {