diff libpurple/protocols/msn/sync.c @ 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 59e09ff3490d
children 44b4e8bd759b 4403cecc7cd6
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];