diff options
author | Ka-Hing Cheung <khc@pidgin.im> | 2008-01-13 00:29:56 +0000 |
---|---|---|
committer | Ka-Hing Cheung <khc@pidgin.im> | 2008-01-13 00:29:56 +0000 |
commit | 0b0683fea0fc547537ad2263d48d4ac2d6b43fc2 (patch) | |
tree | 9e8a04632e35b404042c533f80d8d3d5832ee12a | |
parent | bf7d596e06a4a24ab01e6af9fb742e1f5a0a364d (diff) | |
download | pidgin-0b0683fea0fc547537ad2263d48d4ac2d6b43fc2.tar.gz |
zero out this, side effect is not crashing when password is incorrect
-rw-r--r-- | libpurple/protocols/msn/nexus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/protocols/msn/nexus.c b/libpurple/protocols/msn/nexus.c index 6321a080e3..f5e41b2d87 100644 --- a/libpurple/protocols/msn/nexus.c +++ b/libpurple/protocols/msn/nexus.c @@ -59,7 +59,7 @@ msn_nexus_new(MsnSession *session) 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, |