summaryrefslogtreecommitdiff
path: root/src/conn-contact-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn-contact-info.c')
-rw-r--r--src/conn-contact-info.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conn-contact-info.c b/src/conn-contact-info.c
index 80be9b84b..59fbcd789 100644
--- a/src/conn-contact-info.c
+++ b/src/conn-contact-info.c
@@ -419,8 +419,10 @@ _return_from_request_contact_info (WockyNode *vcard_node,
if (NULL == vcard_node)
{
- GError tp_error = { TP_ERROR, TP_ERROR_NOT_AVAILABLE,
- vcard_error->message };
+ GError tp_error = { TP_ERROR, TP_ERROR_NOT_AVAILABLE, "" };
+
+ g_assert (vcard_error != NULL);
+ tp_error.message = vcard_error->message;
if (vcard_error->domain == WOCKY_XMPP_ERROR)
{