pidgin: b478b184: Fix a compiler warning:

rlaager at pidgin.im rlaager at pidgin.im
Fri Jan 2 18:06:52 EST 2009


-----------------------------------------------------------------
Revision: b478b184a46116ac87ac85b8cd352ea564224019
Ancestor: f018e11a7ea08e07f22667e6daca2ec7e64f9710
Author: rlaager at pidgin.im
Date: 2009-01-02T22:41:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b478b184a46116ac87ac85b8cd352ea564224019

Modified files:
        libpurple/protocols/jabber/message.c

ChangeLog: 

Fix a compiler warning:
message.c: In function 'handle_buzz':
message.c:317: warning: 'str' may be used uninitialized in this function

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	74647fb848e91449b49a542c2c8f5568cae1ff33
+++ libpurple/protocols/jabber/message.c	4dcef9c6278ca5f8cd62a284572b6a2949fc5d68
@@ -290,7 +290,7 @@ static void handle_buzz(JabberMessage *j
 	PurpleBuddy *buddy;
 	PurpleAccount *account;
 	PurpleConversation *c;
-	char *username, *str;
+	char *username;
 
 	/* Delayed buzz MUST NOT be accepted */
 	if(jm->delayed)
@@ -314,7 +314,6 @@ static void handle_buzz(JabberMessage *j
 	purple_prpl_got_attention(jm->js->gc, username, 0);
 
 	g_free(username);
-	g_free(str);
 }
 
 /* used internally by the functions below */


More information about the Commits mailing list