# HG changeset patch # User Evan Schoenberg # Date 1187317602 0 # Node ID 39779b201e7c77f87132791f2820bac8bf95f360 # Parent 9a8bb33fc60ae862df6548219c34b4bee580c8b4 Initialize newmood to NULL, as there are codepaths by which we can check against whether it is NULL or not before setting it, and that's bad. diff -r 9a8bb33fc60a -r 39779b201e7c libpurple/protocols/jabber/usermood.c --- a/libpurple/protocols/jabber/usermood.c Fri Aug 17 01:54:19 2007 +0000 +++ b/libpurple/protocols/jabber/usermood.c Fri Aug 17 02:26:42 2007 +0000 @@ -94,7 +94,7 @@ static void jabber_mood_cb(JabberStream *js, const char *from, xmlnode *items) { /* it doesn't make sense to have more than one item here, so let's just pick the first one */ xmlnode *item = xmlnode_get_child(items, "item"); - const char *newmood; + const char *newmood = NULL; char *moodtext = NULL; JabberBuddy *buddy = jabber_buddy_find(js, from, FALSE); xmlnode *moodinfo, *mood;