changeset 19279:39779b201e7c

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.
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 17 Aug 2007 02:26:42 +0000
parents 9a8bb33fc60a
children 472bcd9d502e
files libpurple/protocols/jabber/usermood.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;