[MERGED] osmo-bts[master]: bursts test: test_pdtch: pre-init result mem

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Dec 2 12:10:04 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: bursts test: test_pdtch: pre-init result mem
......................................................................


bursts test: test_pdtch: pre-init result mem

Fixes: CID#57943
Change-Id: I4547f47c4150759d5c4ab790e34e91b784b03b39
---
M tests/bursts/bursts_test.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/tests/bursts/bursts_test.c b/tests/bursts/bursts_test.c
index 43764ab..d4bb3e0 100644
--- a/tests/bursts/bursts_test.c
+++ b/tests/bursts/bursts_test.c
@@ -349,6 +349,8 @@
 	int n_errors, n_bits_total;
 	int rc;
 
+	memset(result, 0xff, len);
+
 	/* zero the not coded tail bits */
 	switch (len) {
 	case 34:

-- 
To view, visit https://gerrit.osmocom.org/1338
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4547f47c4150759d5c4ab790e34e91b784b03b39
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list