changeset 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 131f70fc53c1
children f0100b414d98
files src/protocols/msn/slplink.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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;
 	}