changeset 23455: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 7b03d95902d4
children 00eaff9396ec
files libpurple/protocols/msn/nexus.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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,