[Asterisk-code-review] bridge softmix: Fix array length calculation in test. (asterisk[15])

Corey Farrell asteriskteam at digium.com
Mon Jan 8 18:37:19 CST 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7875


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/75/7875/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), &params[i])) {
 			return -1;
 		}

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

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b1dd8bed10439d3c7406f033eb1896b6c419147
Gerrit-Change-Number: 7875
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/20e13cb0/attachment.html>


More information about the asterisk-code-review mailing list