changeset 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 f79b6c9b82a5 55c7c41ce84c
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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,