Fixes NB#140483, do not process alerts without error
authorSergio Villar Senin <svillar@igalia.com>
Mon, 28 Sep 2009 14:26:25 +0000 (16:26 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 16 Oct 2009 14:29:36 +0000 (16:29 +0200)
src/modest-tny-account-store.c

index 837a9f5..d404f01 100644 (file)
@@ -1084,7 +1084,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) {