comparison src/protocols/jabber/chat.c @ 8010:c4b5a35c7a12

[gaim-migrate @ 8690] jabber crashen fixen committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 05 Jan 2004 17:42:36 +0000
parents 415df6fa0395
children 9a6df4d567e0
comparison
equal deleted inserted replaced
8009:fa04c9427837 8010:c4b5a35c7a12
307 if(!(query = xmlnode_get_child(packet, "query"))) 307 if(!(query = xmlnode_get_child(packet, "query")))
308 return; 308 return;
309 309
310 for(x = query->child; x; x = x->next) { 310 for(x = query->child; x; x = x->next) {
311 const char *xmlns; 311 const char *xmlns;
312 if(strcmp(x->name, "x")) 312 if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x"))
313 continue; 313 continue;
314 314
315 if(!(xmlns = xmlnode_get_attrib(x, "xmlns"))) 315 if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))
316 continue; 316 continue;
317 317
459 if(!(query = xmlnode_get_child(packet, "query"))) 459 if(!(query = xmlnode_get_child(packet, "query")))
460 return; 460 return;
461 461
462 for(x = query->child; x; x = x->next) { 462 for(x = query->child; x; x = x->next) {
463 const char *xmlns; 463 const char *xmlns;
464 if(strcmp(x->name, "x")) 464 if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x"))
465 continue; 465 continue;
466 466
467 if(!(xmlns = xmlnode_get_attrib(x, "xmlns"))) 467 if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))
468 continue; 468 continue;
469 469