From 3da4948c0fc1f2c21b163f0ec456b2d99c881258 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 7 Sep 2013 12:31:19 -0400 Subject: Miscellaneous cleanups. --- addressbook/tools/evolution-addressbook-export-list-cards.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addressbook/tools') diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c index d6e9ecca57..86caa5ae8a 100644 --- a/addressbook/tools/evolution-addressbook-export-list-cards.c +++ b/addressbook/tools/evolution-addressbook-export-list-cards.c @@ -734,8 +734,8 @@ action_list_cards_init (ActionContext *p_actctx) query_str = e_book_query_to_string (query); e_book_query_unref (query); - if (!e_book_client_get_contacts_sync (book_client, query_str, &contacts, NULL, &error)) - contacts = NULL; + e_book_client_get_contacts_sync ( + book_client, query_str, &contacts, NULL, &error); action_list_cards (contacts, p_actctx); @@ -743,7 +743,7 @@ action_list_cards_init (ActionContext *p_actctx) g_slist_free (contacts); g_object_unref (book_client); - if (error) { + if (error != NULL) { g_warning ("Failed to get contacts: %s", error->message); g_error_free (error); } -- cgit v1.2.3