fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/30377 )

Change subject: mobile: timeout_rr_meas(): fix uninitialized variable
......................................................................

mobile: timeout_rr_meas(): fix uninitialized variable

Change-Id: I956a1cafe9fed1a881574f59d0532e5cf931a1f7
Fixes: c9e579cea137fd147173434b7fa128d37685011
Fixes: CID#300084
---
M src/host/layer23/src/mobile/gsm48_rr.c
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved



diff --git a/src/host/layer23/src/mobile/gsm48_rr.c 
b/src/host/layer23/src/mobile/gsm48_rr.c
index 41aa7b8..b42ab3a 100644
--- a/src/host/layer23/src/mobile/gsm48_rr.c
+++ b/src/host/layer23/src/mobile/gsm48_rr.c
@@ -654,11 +654,12 @@
                        gsm_print_mcc(cs->sel_mcc),
                        gsm_print_mnc(cs->sel_mnc), cs->sel_lac, cs->sel_id);
                if (rr->state == GSM48_RR_ST_DEDICATED) {
-                       sprintf(text + strlen(text), " TA=%d pwr=%d TS=%d",
+                       sprintf(text + strlen(text), " TA=%d pwr=%d",
                        rr->cd_now.ind_ta - set->alter_delay,
                        (set->alter_tx_power) ? set->alter_tx_power_value
-                                       : rr->cd_now.ind_tx_power, ch_ts);
+                                       : rr->cd_now.ind_tx_power);
                        if (rsl_dec_chan_nr(rr->cd_now.chan_nr, &ch_type, 
&ch_subch, &ch_ts) == 0) {
+                               sprintf(text + strlen(text), " TS=%d", ch_ts);
                                if (ch_type == RSL_CHAN_SDCCH8_ACCH
                                 || ch_type == RSL_CHAN_SDCCH4_ACCH
                                 || ch_type == RSL_CHAN_Lm_ACCHs)

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30377
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I956a1cafe9fed1a881574f59d0532e5cf931a1f7
Gerrit-Change-Number: 30377
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to