aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-26 13:11:44 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-02 12:10:03 +0000
commit20363d165e4979ee74054bfbbc0419184e9846f8 (patch)
tree11d9fea93944f5047ece56ee4c280dd04c90b8a8 /tests
parent4a8582846281322e8d7dfc577b18767cf35c24d1 (diff)
bursts test: test_pdtch: pre-init result mem
Fixes: CID#57943 Change-Id: I4547f47c4150759d5c4ab790e34e91b784b03b39
Diffstat (limited to 'tests')
-rw-r--r--tests/bursts/bursts_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bursts/bursts_test.c b/tests/bursts/bursts_test.c
index 43764ab3..d4bb3e0b 100644
--- a/tests/bursts/bursts_test.c
+++ b/tests/bursts/bursts_test.c
@@ -349,6 +349,8 @@ static void test_pdtch(uint8_t *l2, int len)
int n_errors, n_bits_total;
int rc;
+ memset(result, 0xff, len);
+
/* zero the not coded tail bits */
switch (len) {
case 34: