# HG changeset patch # User Ka-Hing Cheung # Date 1200184196 0 # Node ID f182cf94145cf4b6d8428f2b5a93a898e6745d3d # Parent 7b03d95902d4a1f774192c1b987e7217ed5028d2 zero out this, side effect is not crashing when password is incorrect diff -r 7b03d95902d4 -r f182cf94145c libpurple/protocols/msn/nexus.c --- a/libpurple/protocols/msn/nexus.c Sat Jan 12 23:32:00 2008 +0000 +++ b/libpurple/protocols/msn/nexus.c Sun Jan 13 00:29:56 2008 +0000 @@ -59,7 +59,7 @@ nexus->session = session; nexus->token_len = sizeof(ticket_domains) / sizeof(char *[2]); - nexus->tokens = g_malloc(sizeof(MsnTicketToken) * nexus->token_len); + nexus->tokens = g_new0(MsnTicketToken, nexus->token_len); for (i = 0; i < nexus->token_len; i++) nexus->tokens[i].token = g_hash_table_new_full(g_str_hash, g_str_equal,