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/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Nov 19 16:32:35 UTC 2020


dexter has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/56/21256/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201119/d9150fd7/attachment.htm>


More information about the gerrit-log mailing list