]> sjero.net Git - linphone/commitdiff
Do not define a variable in the middle of a block of code.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 20 Mar 2013 14:48:48 +0000 (15:48 +0100)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 20 Mar 2013 14:48:48 +0000 (15:48 +0100)
coreapi/linphonecore.c

index 93d0b8b801925a8075c671e3d5e869f5c8365f26..54224126247c7e1f703ed7f211c08cf4db1eb873 100644 (file)
@@ -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);