pidgin: 88c654eb: Simplify
markdoliner at pidgin.im
markdoliner at pidgin.im
Tue Apr 29 01:41:03 EDT 2008
-----------------------------------------------------------------
Revision: 88c654eb750d6ce8e3d23da8cccc0a2bd93c8107
Ancestor: 5f1a220f63d8e85758a94a2ed57381dc91b07eda
Author: markdoliner at pidgin.im
Date: 2008-04-29T01:33:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/88c654eb750d6ce8e3d23da8cccc0a2bd93c8107
Modified files:
libpurple/protocols/jabber/buddy.c
ChangeLog:
Simplify
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c d5f219a0da85a07fead266cfbe5938da17efb469
+++ libpurple/protocols/jabber/buddy.c b461400d7415f5d853117bc4a40b52fb18138611
@@ -155,12 +155,8 @@ JabberBuddyResource *jabber_buddy_track_
}
jbr->priority = priority;
jbr->state = state;
- if(jbr->status)
- g_free(jbr->status);
- if (status)
- jbr->status = g_markup_escape_text(status, -1);
- else
- jbr->status = NULL;
+ g_free(jbr->status);
+ jbr->status = status != NULL ? g_markup_escape_text(status, -1) : NULL;
return jbr;
}
More information about the Commits
mailing list