Change in osmo-e1-hardware[master]: osmo_e1f: Fix use of uninitized variable

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
Sat Dec 19 11:08:35 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21797 )


Change subject: osmo_e1f: Fix use of uninitized variable
......................................................................

osmo_e1f: Fix use of uninitized variable

Change-Id: I42024856a58f0bd4fcc1c767688de5334994a8a8
---
M software/obsolete/osmo_e1f.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/97/21797/1

diff --git a/software/obsolete/osmo_e1f.c b/software/obsolete/osmo_e1f.c
index 6a8725c..cbcd0db 100644
--- a/software/obsolete/osmo_e1f.c
+++ b/software/obsolete/osmo_e1f.c
@@ -206,7 +206,7 @@
 /* pull a single to-be-transmitted byte for TS0 */
 static uint8_t e1_pull_ts0(struct osmo_e1f_instance *e1i)
 {
-	uint8_t ret;
+	uint8_t ret = 0;
 
 	/* according to Table 5B/G.704 - CRC-4 multiframe structure */
 	if ((e1i->tx.frame_nr % 2) == 0) {

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

Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I42024856a58f0bd4fcc1c767688de5334994a8a8
Gerrit-Change-Number: 21797
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201219/e7712b8f/attachment.htm>


More information about the gerrit-log mailing list