From 2edf5cf47fc163dc36ed686098752470efeb5949 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 19 Nov 2020 17:31:09 +0100 Subject: l1sap: pre-initalize pointer with NULL to avoid gcc warning Change-Id: Ibfd18ed5268740cc73fffdb950b96c7f0fad3164 --- src/common/l1sap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/l1sap.c b/src/common/l1sap.c index c9ec9bf0..cfe7ebb0 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -918,7 +918,8 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx, uint8_t chan_nr, link_id; uint8_t tn; uint32_t fn; - uint8_t *p, *si; + uint8_t *p = NULL; + uint8_t *si; struct lapdm_entity *le; struct osmo_phsap_prim pp; bool dtxd_facch = false; -- cgit v1.2.3-59-g8ed1b