src/protocols/jabber/message.c

changeset 10607
d12a757bb2b4
parent 10490
72932e32f29d
child 10732
5e314ab498bf
equal deleted inserted replaced
10606:2da2a96f3627 10607:d12a757bb2b4
287 jm->thread_id = xmlnode_get_data(child); 287 jm->thread_id = xmlnode_get_data(child);
288 } else if(!strcmp(child->name, "body")) { 288 } else if(!strcmp(child->name, "body")) {
289 if(!jm->body) 289 if(!jm->body)
290 jm->body = xmlnode_to_str(child, NULL); 290 jm->body = xmlnode_to_str(child, NULL);
291 } else if(!strcmp(child->name, "html")) { 291 } else if(!strcmp(child->name, "html")) {
292 if(!jm->xhtml) 292 if(!jm->xhtml && child->data_sz > 0)
293 jm->xhtml = xmlnode_to_str(child, NULL); 293 jm->xhtml = xmlnode_to_str(child, NULL);
294 } else if(!strcmp(child->name, "error")) { 294 } else if(!strcmp(child->name, "error")) {
295 const char *code = xmlnode_get_attrib(child, "code"); 295 const char *code = xmlnode_get_attrib(child, "code");
296 char *code_txt = NULL; 296 char *code_txt = NULL;
297 char *text = xmlnode_get_data(child); 297 char *text = xmlnode_get_data(child);

mercurial