changeset 20295:f837139b3732

merge of '554f47773ad015df16569e503432329570fa1564' and '868723337c9f90e7c57c05f7fc0178338339179d'
author Luke Schierer <lschiere@pidgin.im>
date Mon, 01 Oct 2007 16:41:18 +0000
parents 19d83c5f644d (current diff) d41907afb521 (diff)
children 48f03c46b86b 15f61e6b15cd
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Sat Sep 29 16:31:04 2007 +0000
+++ b/libpurple/protocols/jabber/google.c	Mon Oct 01 16:41:18 2007 +0000
@@ -64,7 +64,8 @@
 	message = xmlnode_get_child(child, "mail-thread-info");
 
 	if (count == 0 || !message) {
-		purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL);
+		if (count > 0)
+			purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL);
 		g_free(default_tos[0]);
 		return;
 	}