From: Kevin P. Fleming Date: Thu, 11 May 2006 10:28:22 +0000 (+0000) Subject: initialize the bridge result to 'no result', so that we can check for code paths... X-Git-Tag: 1.4.0-beta1~1400 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5413095996b2b950acb9c5173cec97dbf6d830f;p=thirdparty%2Fasterisk.git initialize the bridge result to 'no result', so that we can check for code paths that set it to AST_BRIDGE_COMPLETE inside the loop (thanks Oskar!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26849 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index e341ae30b1..750f1ffe97 100644 --- a/channel.c +++ b/channel.c @@ -3276,7 +3276,7 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct /* Copy voice back and forth between the two channels. */ struct ast_channel *cs[3]; struct ast_frame *f; - enum ast_bridge_result res = AST_BRIDGE_COMPLETE; + enum ast_bridge_result res = 0; int o0nativeformats; int o1nativeformats; int watch_c0_dtmf; @@ -3345,7 +3345,7 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct default: *fo = f; *rc = who; - res = AST_BRIDGE_COMPLETE; + res = AST_BRIDGE_COMPLETE; ast_log(LOG_DEBUG, "Got a FRAME_CONTROL (%d) frame on channel %s\n", f->subclass, who->name); break; }