From 137c498c87c04a4488ffceef033fd4fd9e91869f Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 14 Aug 2001 03:58:29 +0000 Subject: don't access source->auth if source == NULL (bug #7086). 2001-08-13 Chris Toshok * gui/component/addressbook-config.c (addressbook_source_dialog_set_source): don't access source->auth if source == NULL (bug #7086). svn path=/trunk/; revision=11988 --- addressbook/gui/component/addressbook-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui/component/addressbook-config.c') diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 3a29402453..d7f8d43f1b 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -106,7 +106,7 @@ addressbook_source_dialog_set_source (AddressbookSourceDialog *dialog, Addressbo e_utf8_gtk_entry_set_text (GTK_ENTRY (dialog->rootdn), source ? source->rootdn : ""); gtk_option_menu_set_history (GTK_OPTION_MENU(dialog->scope_optionmenu), source ? source->scope : 0); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(dialog->auth_checkbutton), source->auth == ADDRESSBOOK_LDAP_AUTH_SIMPLE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(dialog->auth_checkbutton), source && source->auth == ADDRESSBOOK_LDAP_AUTH_SIMPLE); } static AddressbookSource * -- cgit