Mercurial > pidgin
diff src/protocols/jabber/message.c @ 10607:bf4c9ce533ab
[gaim-migrate @ 12043]
fix a segfault, fix an idiocy from other clients (that was already applied to oldstatus)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 17 Feb 2005 03:31:06 +0000 |
parents | a3a540ed2518 |
children | c4cb90065e1d |
line wrap: on
line diff
--- a/src/protocols/jabber/message.c Wed Feb 16 22:14:51 2005 +0000 +++ b/src/protocols/jabber/message.c Thu Feb 17 03:31:06 2005 +0000 @@ -289,7 +289,7 @@ if(!jm->body) jm->body = xmlnode_to_str(child, NULL); } else if(!strcmp(child->name, "html")) { - if(!jm->xhtml) + if(!jm->xhtml && child->data_sz > 0) jm->xhtml = xmlnode_to_str(child, NULL); } else if(!strcmp(child->name, "error")) { const char *code = xmlnode_get_attrib(child, "code");