aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-account-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/exchange-operations/exchange-account-setup.c')
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 4b291f73c7..a705671fe2 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -174,7 +174,7 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data)
CamelURL *url;
const char *source_url;
char *message = NULL, *txt = NULL, *oof_message;
- gboolean oof_state;
+ gboolean oof_state = FALSE;
GtkVBox *vbox_settings;
@@ -232,7 +232,7 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data)
/* See if oof info found already */
- if (!exchange_oof_get (account, &oof_state, &message)) {
+ if (account && !exchange_oof_get (account, &oof_state, &message)) {
e_error_run (NULL, ERROR_DOMAIN ":state-read-error", NULL);