changeset 7190:13c725566078

[gaim-migrate @ 7759] See if this fixes the assertion error with gaim_notify_emails in MSN that people seem to be getting. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 08 Oct 2003 15:11:45 +0000
parents 3009857eaa92
children 4bd3892cded3
files src/protocols/msn/notification.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Wed Oct 08 12:04:57 2003 +0000
+++ b/src/protocols/msn/notification.c	Wed Oct 08 15:11:45 2003 +0000
@@ -1993,9 +1993,13 @@
 	if (unread != NULL) {
 		const char *passport = msn_user_get_passport(session->user);
 		const char *url = session->passport_info.file;
-
-		gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL,
-						   &passport, &url, NULL, NULL);
+		int count = atoi(unread);
+
+		if (count != 0)
+		{
+			gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL,
+							   &passport, &url, NULL, NULL);
+		}
 	}
 
 	g_hash_table_destroy(table);