aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-11-19 17:31:09 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2020-11-19 17:32:16 +0100
commit2edf5cf47fc163dc36ed686098752470efeb5949 (patch)
tree588111368305af048a69dd1465816d7a1c5fca7e
parent70d78f21f289e5fa2ce0073889a59df8e0e2f5b9 (diff)
l1sap: pre-initalize pointer with NULL to avoid gcc warning
-rw-r--r--src/common/l1sap.c3
1 files changed, 2 insertions, 1 deletions
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;