Commit 5c025647 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

conn-contact-info: prevent a potential NULL dereferencing

parent d7e92269
......@@ -483,8 +483,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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment