diff -r 2da2a96f3627 -r d12a757bb2b4 src/protocols/jabber/message.c --- 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");