From 32f65739c0dcdb437c8798eb52639f19825cf8f0 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Wed, 27 Jan 2010 17:35:53 +0100 Subject: [PATCH] fix crash when call is null --- coreapi/exevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/exevents.c b/coreapi/exevents.c index 45fdc8533..32a5517d8 100644 --- a/coreapi/exevents.c +++ b/coreapi/exevents.c @@ -34,7 +34,7 @@ static bool_t linphone_call_matches_event(LinphoneCall *call, eXosip_event_t *ev static void linphone_call_proceeding(LinphoneCore *lc, eXosip_event_t *ev){ if (lc->call==NULL || (lc->call->cid!=-1 && !linphone_call_matches_event(lc->call,ev)) ) { ms_warning("This call has been canceled: call=%p, call->cid=%i, ev->cid=%i", - lc->call,lc->call->cid,ev->cid); + lc->call,lc->call?lc->call->cid:-1,ev->cid); eXosip_lock(); eXosip_call_terminate(ev->cid,ev->did); eXosip_unlock();