changeset 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 281ddfe07d8d
children 1c4092217e4a
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Sun Jun 27 17:51:20 2004 +0000
+++ b/src/protocols/jabber/jabber.c	Sun Jun 27 17:52:05 2004 +0000
@@ -974,7 +974,7 @@
 
 	type = xmlnode_get_attrib(packet, "type");
 
-	if(!strcmp(type, "result")) {
+	if(type && !strcmp(type, "result")) {
 		gaim_notify_info(js->gc, _("Password Changed"), _("Password Changed"),
 				_("Your password has been changed."));
 	} else {