changeset 5378:a991ff4d5d40

[gaim-migrate @ 5754] Quick fix for a segfault until I find the real problem. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 15 May 2003 19:00:56 +0000
parents fb0a5b872e6a
children 90a76f1d6e64
files src/protocols/msn/msn.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Thu May 15 18:23:58 2003 +0000
+++ b/src/protocols/msn/msn.c	Thu May 15 19:00:56 2003 +0000
@@ -269,7 +269,12 @@
 	else if (away_type != 0)
 		emblems[i++] = "away";
 
-	if (user->mobile)
+	if (user == NULL) {
+		gaim_debug(GAIM_DEBUG_ERROR, "msn",
+				   "buddy %s does not have a MsnUser attached!\n",
+				   buddy->name);
+	}
+	else if (user->mobile)
 		emblems[i++] = "wireless";
 
 	*se = emblems[0];