[Asterisk-code-review] bridge softmix: Fix array length calculation in test. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Mon Jan 8 18:37:31 CST 2018
Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7876
Change subject: bridge_softmix: Fix array length calculation in test.
......................................................................
bridge_softmix: Fix array length calculation in test.
This loop needs to use num_streams instead of ARRAY_LEN(params).
Change-Id: I6b1dd8bed10439d3c7406f033eb1896b6c419147
---
M bridges/bridge_softmix.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/76/7876/1
diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c
index 3343569..56e5010 100644
--- a/bridges/bridge_softmix.c
+++ b/bridges/bridge_softmix.c
@@ -1975,7 +1975,7 @@
return -1;
}
- for (i = 0; i < ARRAY_LEN(params); ++i) {
+ for (i = 0; i < num_streams; ++i) {
if (validate_stream(test, ast_stream_topology_get_stream(topology, i), ¶ms[i])) {
return -1;
}
--
To view, visit https://gerrit.asterisk.org/7876
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b1dd8bed10439d3c7406f033eb1896b6c419147
Gerrit-Change-Number: 7876
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180108/a1969fc9/attachment-0001.html>
More information about the asterisk-code-review
mailing list