cpw.rekkanoryo.icqxstatus: 77b1e329: Check that mood is not the empty string, ...

rlaager at pidgin.im rlaager at pidgin.im
Sun Nov 16 14:20:58 EST 2008


-----------------------------------------------------------------
Revision: 77b1e329c63b0663efe2e73c95874f184f4719e5
Ancestor: 435f2a44245817d6c78568284343c7460338dd61
Author: rlaager at pidgin.im
Date: 2008-11-16T19:17:07
Branch: im.pidgin.cpw.rekkanoryo.icqxstatus
URL: http://d.pidgin.im/viewmtn/revision/info/77b1e329c63b0663efe2e73c95874f184f4719e5

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

ChangeLog: 

Check that mood is not the empty string, just to be safe.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	2db7f9b3baac84f5ab3b288d94b68a90db8f8bab
+++ libpurple/protocols/jabber/jabber.c	e727963a54d8fc6262360e9ddaba6e98e7ab00b4
@@ -1569,7 +1569,7 @@ void jabber_tooltip_text(PurpleBuddy *b,
 
 			status = purple_presence_get_active_status(presence);
 			mood = purple_status_get_attr_string(status, "mood");
-			if(mood != NULL) {
+			if(mood && *mood) {
 				const char *moodtext;
 				moodtext = purple_status_get_attr_string(status, "moodtext");
 				if(moodtext && *moodtext) {


More information about the Commits mailing list