comparison src/protocols/jabber/jabber.c @ 9414:f55fa0a2277e

[gaim-migrate @ 10229] fix a potential crash if a jabber server responds incorrectly committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 27 Jun 2004 17:52:05 +0000
parents b3bda982996b
children d27156c9c876
comparison
equal deleted inserted replaced
9413:281ddfe07d8d 9414:f55fa0a2277e
972 { 972 {
973 const char *type; 973 const char *type;
974 974
975 type = xmlnode_get_attrib(packet, "type"); 975 type = xmlnode_get_attrib(packet, "type");
976 976
977 if(!strcmp(type, "result")) { 977 if(type && !strcmp(type, "result")) {
978 gaim_notify_info(js->gc, _("Password Changed"), _("Password Changed"), 978 gaim_notify_info(js->gc, _("Password Changed"), _("Password Changed"),
979 _("Your password has been changed.")); 979 _("Your password has been changed."));
980 } else { 980 } else {
981 char *msg = jabber_parse_error(js, packet); 981 char *msg = jabber_parse_error(js, packet);
982 982