From 13dad0c8c9f26039ac0048865bcbea11c035bd17 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 15 Jul 2001 09:49:41 +0000 Subject: Commented out some unused variables and labels. (e_destination_importv): 2001-07-15 Christopher James Lahey * backend/ebook/e-destination.c (e_destination_set_string): Commented out some unused variables and labels. (e_destination_importv): Check for the xml not parsing correctly and just return NULL here. * gui/component/select-names/e-select-names-model.c (e_select_names_model_import_destinationv): Handle a NULL destv here. svn path=/trunk/; revision=11112 --- addressbook/gui/component/select-names/e-select-names-model.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index 3cdd5913a5..3fd5249a26 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -372,6 +372,10 @@ e_select_names_model_import_destinationv (ESelectNamesModel *model, destv = e_destination_importv (destinationv); e_select_names_model_delete_all (model); + + if (destv == NULL) + return; + for (i = 0; destv[i]; i++) { e_destination_use_card (destv[i], send_changed, model); e_select_names_model_append (model, destv[i]); -- cgit v1.2.3