[Asterisk-code-review] bridge softmix: Avoid warning about an uninitialized variable. (asterisk[13])

Alexander Traud asteriskteam at digium.com
Fri Jan 5 06:07:06 CST 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/7820


Change subject: bridge_softmix: Avoid warning about an uninitialized variable.
......................................................................

bridge_softmix: Avoid warning about an uninitialized variable.

ASTERISK-27550

Change-Id: I8af3bd84656b685a956d498459f8db3613f68954
---
M bridges/bridge_softmix.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/7820/1

diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c
index f82f350..2bf4f4e 100644
--- a/bridges/bridge_softmix.c
+++ b/bridges/bridge_softmix.c
@@ -932,7 +932,7 @@
 	 * what audio mixed.
 	 */
 	while (!softmix_data->stop && bridge->num_active) {
-		struct ast_bridge_channel *bridge_channel;
+		struct ast_bridge_channel *bridge_channel = NULL;
 		int timeout = -1;
 		struct ast_format *cur_slin = ast_format_cache_get_slin_by_rate(softmix_data->internal_rate);
 		unsigned int softmix_samples = SOFTMIX_SAMPLES(softmix_data->internal_rate, softmix_data->internal_mixing_interval);

-- 
To view, visit https://gerrit.asterisk.org/7820
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8af3bd84656b685a956d498459f8db3613f68954
Gerrit-Change-Number: 7820
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180105/c29a55e5/attachment.html>


More information about the asterisk-code-review mailing list