# HG changeset patch # User Stu Tomlinson # Date 1205371380 0 # Node ID dc599fcdac8d07275e6079eac84f91ee133c538f # Parent ab2c3a93267e21a2dcc1f536965c2e9d633f69a4 Fix for accessing uninitialized memory diff -r ab2c3a93267e -r dc599fcdac8d pidgin/plugins/cap/cap.c --- a/pidgin/plugins/cap/cap.c Wed Mar 12 01:44:06 2008 +0000 +++ b/pidgin/plugins/cap/cap.c Thu Mar 13 01:23:00 2008 +0000 @@ -113,11 +113,8 @@ stats = g_hash_table_lookup(_buddy_stats, buddy->name); if(!stats) { - stats = g_malloc(sizeof(CapStatistics)); + stats = g_malloc0(sizeof(CapStatistics)); stats->last_message = -1; - stats->last_message_status_id = NULL; - stats->last_status_id = NULL; - stats->prediction = NULL; stats->buddy = buddy; stats->last_seen = -1; stats->last_status_id = "";