Change in osmo-bts[master]: l1sap: pre-initalize pointer with NULL to avoid gcc warning

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Nov 19 17:21:30 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/21256 )

Change subject: l1sap: pre-initalize pointer with NULL to avoid gcc warning
......................................................................

l1sap: pre-initalize pointer with NULL to avoid gcc warning

Change-Id: Ibfd18ed5268740cc73fffdb950b96c7f0fad3164
---
M src/common/l1sap.c
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index c9ec9bf..cfe7ebb 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -918,7 +918,8 @@
 	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;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ibfd18ed5268740cc73fffdb950b96c7f0fad3164
Gerrit-Change-Number: 21256
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201119/fa953cf4/attachment.htm>


More information about the gerrit-log mailing list