summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-08-08 10:10:47 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2017-08-08 10:10:47 +0200
commit8f1d1fc2a4d88830b1889b710e0ecc662e1dedab (patch)
treeb1ef464f443581768e79ae3b74f68e0e6ff28ce9
parentc7ee7cc7c57c7c6181eab52cb05b451cbe52aff3 (diff)
osmo-bsc: fix invalid for loop head
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_bssap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
index b83d7ec76..b803433ba 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
@@ -162,7 +162,7 @@ static int match_codec_pref(int *full_rate, enum gsm48_chan_mode *chan_mode,
uint8_t perm_spch;
bool match = false;
- for (i = 0; msc->audio_length; i++) {
+ for (i = 0; i < msc->audio_length; i++) {
perm_spch = audio_support_to_gsm88(msc->audio_support[i]);
if (test_codec_pref(ct, scl, perm_spch)) {
match = true;