changeset 17547:42444b7071d3

Under some conditions, we're getting "BPR MOB Y" when there hasn't previously been a user to attach it to. This prevents crashing. Fixes #1474. Someone more familiar with MSN may want to look into why we might be receiving the unexpected BPR.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 31 May 2007 21:24:43 +0000
parents 55ded28f6640
children 95203f9325a3
files libpurple/protocols/msn/sync.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/sync.c	Thu May 31 20:24:27 2007 +0000
+++ b/libpurple/protocols/msn/sync.c	Thu May 31 21:24:43 2007 +0000
@@ -195,6 +195,8 @@
 
 	user = sync->last_user;
 
+	g_return_if_fail(user != NULL);
+
 	type     = cmd->params[0];
 	value    = cmd->params[1];