Mercurial > pidgin
comparison libpurple/protocols/msn/sync.c @ 17414: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 |
comparison
equal
deleted
inserted
replaced
17413:55ded28f6640 | 17414:42444b7071d3 |
---|---|
192 MsnSync *sync = cmdproc->session->sync; | 192 MsnSync *sync = cmdproc->session->sync; |
193 const char *type, *value; | 193 const char *type, *value; |
194 MsnUser *user; | 194 MsnUser *user; |
195 | 195 |
196 user = sync->last_user; | 196 user = sync->last_user; |
197 | |
198 g_return_if_fail(user != NULL); | |
197 | 199 |
198 type = cmd->params[0]; | 200 type = cmd->params[0]; |
199 value = cmd->params[1]; | 201 value = cmd->params[1]; |
200 | 202 |
201 if (value) | 203 if (value) |