diff libpurple/protocols/msn/nexus.c @ 23500:f182cf94145c

zero out this, side effect is not crashing when password is incorrect
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 13 Jan 2008 00:29:56 +0000
parents bca58b00afab
children d756a0477c06
line wrap: on
line diff
--- 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,