--- a/libpurple/protocols/msn/contact.c Sat Jun 02 02:27:41 2012 +0000
+++ b/libpurple/protocols/msn/contact.c Sat Jun 02 02:30:13 2012 +0000
@@ -726,7 +726,7 @@
name = xmlnode_get_data(xmlnode_get_child(annotation, "Name"));
value = xmlnode_get_data(xmlnode_get_child(annotation, "Value"));
- if (!strcmp(name, "MSN.IM.MPOP")) {
+ if (name && g_str_equal(name, "MSN.IM.MPOP")) { if (!value || atoi(value) != 0)
session->enable_mpop = TRUE;
@@ -802,9 +802,12 @@
Name = g_strdup(passport);
for (annotation = xmlnode_get_child(contactInfo, "annotations/Annotation");
- annotation; annotation = xmlnode_get_next_twin(annotation)) {
+ annotation = xmlnode_get_next_twin(annotation)) { name = xmlnode_get_data(xmlnode_get_child(annotation, "Name"));
if (!strcmp(name, "AB.NickName"))
alias = xmlnode_get_data(xmlnode_get_child(annotation, "Value"));
else if (!strcmp(name, "MSN.IM.HasSharedFolder"))