aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/importers/evolution-csv-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/importers/evolution-csv-importer.c')
-rw-r--r--addressbook/importers/evolution-csv-importer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index 6d5423e064..fea7e5b5b6 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -726,7 +726,10 @@ csv_import_contacts (gpointer d)
while ((contact = getNextCSVEntry (gci, gci->file))) {
gchar *uid = NULL;
- if (e_book_client_add_contact_sync (gci->book_client, contact, &uid, NULL, NULL) && uid) {
+
+ e_book_client_add_contact_sync (
+ gci->book_client, contact, &uid, NULL, NULL);
+ if (uid != NULL) {
e_contact_set (contact, E_CONTACT_UID, uid);
g_free (uid);
}