From: Ghislain MARY Date: Wed, 20 Mar 2013 14:48:48 +0000 (+0100) Subject: Do not define a variable in the middle of a block of code. X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=dbc944a5f44bbfc7e7a4dd0aaed5e30e45cacaa2 Do not define a variable in the middle of a block of code. --- diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 93d0b8b8..54224126 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2117,8 +2117,9 @@ void linphone_core_iterate(LinphoneCore *lc){ if (call->state==LinphoneCallIncomingReceived){ ms_message("incoming call ringing for %i seconds",elapsed); if (elapsed>lc->sip_conf.inc_timeout){ + LinphoneReason decline_reason; ms_message("incoming call timeout (%i)",lc->sip_conf.inc_timeout); - LinphoneReason decline_reason=lc->current_call ? LinphoneReasonBusy : LinphoneReasonDeclined; + decline_reason=lc->current_call ? LinphoneReasonBusy : LinphoneReasonDeclined; call->log->status=LinphoneCallMissed; call->reason=LinphoneReasonNotAnswered; linphone_core_decline_call(lc,call,decline_reason);