diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2020-11-19 17:31:09 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2020-11-19 17:32:16 +0100 |
commit | 2edf5cf47fc163dc36ed686098752470efeb5949 (patch) | |
tree | 588111368305af048a69dd1465816d7a1c5fca7e /src/common/l1sap.c | |
parent | 70d78f21f289e5fa2ce0073889a59df8e0e2f5b9 (diff) |
l1sap: pre-initalize pointer with NULL to avoid gcc warning
Change-Id: Ibfd18ed5268740cc73fffdb950b96c7f0fad3164
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 3 |
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; |