changeset 15285:e8f8749e6182

[gaim-migrate @ 18074] Fix a crash when adding a buddy to the deny list on a Google Talk account when that buddy doesnot have a resource name, and changed a printf() to a gaim_debug(). committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 04 Jan 2007 23:38:43 +0000
parents c2f15e2117dc
children 21509d8e4e70
files libgaim/protocols/jabber/google.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/jabber/google.c	Thu Jan 04 23:20:12 2007 +0000
+++ b/libgaim/protocols/jabber/google.c	Thu Jan 04 23:38:43 2007 +0000
@@ -294,8 +294,11 @@
 		GList *l = jb->resources;
 		while (l) {
 			jbr = l->data;
-			printf("ASDFA %s\n", jbr->name);
-			jabber_buddy_remove_resource(jb, jbr->name);
+			if (jbr && jbr->name)
+			{
+				gaim_debug(GAIM_DEBUG_MISC, "jabber", "Removing resource %s\n", jbr->name);
+				jabber_buddy_remove_resource(jb, jbr->name);
+			}
 			l = l->next;
 		}
 	}