changeset 22919:1003f1736be1

Close up scope of a variable, I'm just cleaning up my tree some.
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 13 May 2008 00:12:38 +0000
parents 5913a8477237
children c0a8dbe36ffe
files libpurple/protocols/jabber/chat.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/chat.c	Tue May 13 00:08:06 2008 +0000
+++ b/libpurple/protocols/jabber/chat.c	Tue May 13 00:12:38 2008 +0000
@@ -95,11 +95,10 @@
 		const char *server)
 {
 	JabberChat *chat = NULL;
-	char *room_jid;
 
 	if(NULL != js->chats)
 	{
-		room_jid = g_strdup_printf("%s@%s", room, server);
+		char *room_jid = g_strdup_printf("%s@%s", room, server);
 
 		chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid));
 		g_free(room_jid);