diff mbox

[23/33] l1sap: Avoid compiler warnings regarding uninitialized nmsg

Message ID 1409176492-13269-24-git-send-email-laforge@gnumonks.org
State Superseded
Headers show

Commit Message

Harald Welte Aug. 27, 2014, 9:54 p.m. UTC
---
 src/osmo-bts-sysmo/l1_if.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 3b5e823..f17972b 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -449,7 +449,7 @@  static int ph_data_req(struct gsm_bts_trx *trx, struct msgb *msg,
 {
 	struct femtol1_hdl *fl1 = trx_femtol1_hdl(trx);
 	uint32_t u32Fn;
-	uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi;
+	uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi = 0;
 	uint8_t chan_nr, link_id;
 	GsmL1_Prim_t *l1p;
 	int len;
@@ -539,7 +539,7 @@  static int ph_tch_req(struct gsm_bts_trx *trx, struct msgb *msg,
 	uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi, ss;
 	uint8_t chan_nr;
 	GsmL1_Prim_t *l1p;
-	struct msgb *nmsg;
+	struct msgb *nmsg = NULL;
 
 	chan_nr = l1sap->u.tch.chan_nr;
 	u32Fn = l1sap->u.tch.fn;