diff options
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index c511885a9d..b864f3b32b 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -154,6 +154,8 @@ get_password (CamelSession *session, const char *prompt, gboolean secret, char *key, *ans; key = make_key (service, item); + if (!key) + return NULL; ans = g_hash_table_lookup (mail_session->passwords, key); if (ans) { |