Changing roster handle with no argument clears handle

This commit is contained in:
James Booth
2013-05-19 03:27:59 +01:00
parent d9cb8c100f
commit 1c41a46dce
3 changed files with 14 additions and 6 deletions

View File

@@ -80,7 +80,9 @@ p_contact_set_name(const PContact contact, const char * const name)
FREE_SET_NULL(contact->name);
}
contact->name = strdup(name);
if (name != NULL) {
contact->name = strdup(name);
}
}
gboolean