# HG changeset patch # User John Bailey # Date 1276813225 0 # Node ID 509c63006b1f4e4c7acbb388f1a50df948bff1a5 # Parent 545ce15b619f5bb2f6b2470dd4e3b54a22e5cfeb Fix a typo and solve a crash. g_free() is not safe on uninitialized pointers. diff -r 545ce15b619f -r 509c63006b1f libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Thu Jun 17 21:23:01 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Thu Jun 17 22:20:25 2010 +0000 @@ -402,10 +402,10 @@ PurpleGroup *g; GSList *list, *i; gboolean onlist = FALSE; - char *oname; + char *oname = NULL; if (g_hash_table_lookup_extended(ht, purple_normalize(account, name), (gpointer *)&oname, (gpointer *)&list)) - g_hash_table_steal(ht, oname); + g_hash_table_steal(ht, name); else list = purple_find_buddies(account, name);