# HG changeset patch # User Richard Laager # Date 1226863027 0 # Node ID 37be968cd42caa64d9db24fe250a6a5d245c365e # Parent bbc06845d96b6f715e1e9a0fbe99ed199f5ebfd4 Check that mood is not the empty string, just to be safe. diff -r bbc06845d96b -r 37be968cd42c libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Sun Nov 16 19:10:57 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sun Nov 16 19:17:07 2008 +0000 @@ -1569,7 +1569,7 @@ 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) {