diff libpurple/protocols/msn/notification.c @ 24229:e93ca60b97dc

References #6907, wrap a NULL check
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 12 Oct 2008 22:02:07 +0000
parents 94fa764b47e8
children 32e5515232b9
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sun Oct 12 22:00:56 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Oct 12 22:02:07 2008 +0000
@@ -620,7 +620,7 @@
 		if (!(user->list_op & MSN_LIST_OP_MASK))
 			continue;
 
-		if (!strcmp(user->passport, "messenger@microsoft.com"))
+		if (user->passport && !strcmp(user->passport, "messenger@microsoft.com"))
 			continue;
 
 		msn_add_contact_xml(session, adl_node, user->passport,