From e1ed8f743bd5db62b5d8bdd575b60ea187178c53 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 28 Sep 2009 16:26:25 +0200 Subject: [PATCH] Fixes NB#140483, do not process alerts without error --- src/modest-tny-account-store.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index adad0fd..864cc28 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1089,7 +1089,8 @@ modest_tny_account_store_alert (TnyAccountStore *self, gboolean retval = TRUE; /* NOTE: account may be NULL in some cases */ - g_return_val_if_fail (error, FALSE); + if (!error) + return FALSE; /* Get the server name: */ if (account) { -- 1.7.9.5