aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-editor.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-28 06:41:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-28 06:41:01 +0800
commitde1dd89f6c53f81b3dd68861d1ff50edf2dc5674 (patch)
treee2f5fc65eb350247166a7728415467aba7aaee8f /mail/mail-account-editor.c
parentf449bc01e8ca350bd6ed545fa7516ce277099c26 (diff)
downloadgsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar.gz
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar.bz2
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar.lz
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar.xz
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.tar.zst
gsoc2013-evolution-de1dd89f6c53f81b3dd68861d1ff50edf2dc5674.zip
Lets do some NULL checking here. First, make sure the gsrc isn't NULL and
2001-03-27 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (switch_page): Lets do some NULL checking here. First, make sure the gsrc isn't NULL and also make sure that account->source isn't NULL either. * mail-account-gui.c (mail_account_gui_setup): If there isn't a source_proto, make sure we select "None" as the source type. svn path=/trunk/; revision=8984
Diffstat (limited to 'mail/mail-account-editor.c')
-rw-r--r--mail/mail-account-editor.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c
index 5765e40cd3..279304d956 100644
--- a/mail/mail-account-editor.c
+++ b/mail/mail-account-editor.c
@@ -139,17 +139,15 @@ switch_page (GtkNotebook *notebook, GtkNotebookPage *page,
MailAccountEditor *editor = user_data;
MailConfigService *source = editor->gui->account->source;
MailAccountGuiService *gsrc = &editor->gui->source;
- char *url;
+ char *url = NULL;
if (page_num != 2)
return;
- if (gsrc->provider && !strncmp (gsrc->provider->protocol, source->url,
- strlen (gsrc->provider->protocol)))
+ if (gsrc && gsrc->provider && source->url &&
+ !strncmp (gsrc->provider->protocol, source->url, strlen (source->url)))
url = source->url;
- else
- url = NULL;
-
+
mail_account_gui_build_extra_conf (editor->gui, url);
}