[Asterisk-code-review] bridge softmix: Avoid warning about an uninitialized variable. (asterisk[15])
Alexander Traud
asteriskteam at digium.com
Fri Jan 5 06:07:18 CST 2018
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/7821
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/21/7821/1
diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c
index 83b1a83..d8aa48c 100644
--- a/bridges/bridge_softmix.c
+++ b/bridges/bridge_softmix.c
@@ -1364,7 +1364,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/7821
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8af3bd84656b685a956d498459f8db3613f68954
Gerrit-Change-Number: 7821
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/ed3d9e17/attachment.html>
More information about the asterisk-code-review
mailing list