From: Luigi Rizzo Date: Mon, 24 Jul 2006 11:46:27 +0000 (+0000) Subject: move middle-of-the-block declaration at the top. X-Git-Tag: 1.4.0-beta1~524 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c3bc8b1b342ebea4e34f284e89cc99a9d84e94c;p=thirdparty%2Fasterisk.git move middle-of-the-block declaration at the top. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38149 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5231b46b80..97130210f9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11135,6 +11135,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru int outgoing = ast_test_flag(&p->flags[0], SIP_OUTGOING); int res = 0; int reinvite = (p->owner && p->owner->_state == AST_STATE_UP); + struct ast_channel *bridgepeer = NULL; if (option_debug > 3) { if (reinvite) @@ -11235,7 +11236,6 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru build_route(p, req, 1); } - struct ast_channel *bridgepeer = NULL; if (p->owner && (p->owner->_state == AST_STATE_UP) && (bridgepeer = ast_bridged_channel(p->owner))) { /* if this is a re-invite */ struct sip_pvt *bridgepvt = NULL;