aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 38116891b5..47dfdb2880 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -326,7 +326,7 @@ e_card_get_id (ECard *card)
{
g_return_val_if_fail (card && E_IS_CARD (card), NULL);
- return card->id;
+ return card->id ? card->id : "";
}
/**
@@ -344,7 +344,7 @@ e_card_set_id (ECard *card, const char *id)
if ( card->id )
g_free(card->id);
- card->id = g_strdup(id);
+ card->id = g_strdup(id ? id : "");
}
EBook *
@@ -729,7 +729,7 @@ e_card_get_vobject (ECard *card, gboolean assumeUTF8)
}
}
- ADD_PROP_VALUE (vobj, VCUniqueStringProp, card->id);
+ ADD_PROP_VALUE (vobj, VCUniqueStringProp, card->id ? card->id : "");
#if 0
if (crd->photo.prop.used) {