Mercurial > pidgin.yaz
diff src/protocols/msn/slplink.c @ 10107:65e7df286076
[gaim-migrate @ 11139]
msn crash fix from evands
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 17 Oct 2004 22:38:24 +0000 |
parents | 1843023b8189 |
children | ecf3ce2e2ab1 |
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c Sun Oct 17 22:37:46 2004 +0000 +++ b/src/protocols/msn/slplink.c Sun Oct 17 22:38:24 2004 +0000 @@ -150,11 +150,14 @@ GList *l; MsnSlpCall *slpcall; + if (!id) + return NULL; + for (l = slplink->slp_calls; l != NULL; l = l->next) { slpcall = l->data; - if (!strcmp(slpcall->id, id)) + if (slpcall->id && !strcmp(slpcall->id, id)) return slpcall; }