# HG changeset patch # User Elliott Sales de Andrade # Date 1254600095 0 # Node ID 97856e3452d06e914664ee9f9fbc1074b83292f3 # Parent 3397fb5f89cfd91d249ac6cbea420cea6f50597e Don't crash is passport is NULL on Windows. I don't know why this would happen, but there's a g_return_if_fail checking it, so it must happen at some point. diff -r 3397fb5f89cf -r 97856e3452d0 libpurple/protocols/msn/contact.c --- a/libpurple/protocols/msn/contact.c Sat Oct 03 03:25:05 2009 +0000 +++ b/libpurple/protocols/msn/contact.c Sat Oct 03 20:01:35 2009 +0000 @@ -1418,11 +1418,12 @@ xmlnode *contact_info; xmlnode *changes; - purple_debug_info("msn", "Update contact information with new %s: %s\n", + purple_debug_info("msn", "Update contact information for %s with new %s: %s\n", + passport ? passport : "(null)", type == MSN_UPDATE_DISPLAY ? "display name" : "alias", value ? value : "(null)"); - purple_debug_info("msn", "passport=%s\n", passport); g_return_if_fail(passport != NULL); + contact_info = xmlnode_new("contactInfo"); changes = xmlnode_new("propertiesChanged"); @@ -1451,8 +1452,6 @@ g_return_if_reached(); } - - state = msn_callback_state_new(session); state->body = xmlnode_from_str(MSN_CONTACT_UPDATE_TEMPLATE, -1);