bursts test: test_pdtch: pre-init result mem

Fixes: CID#57943
Change-Id: I4547f47c4150759d5c4ab790e34e91b784b03b39
This commit is contained in:
Neels Hofmeyr 2016-11-26 13:11:44 +01:00 committed by Harald Welte
parent 4a85828462
commit 20363d165e
1 changed files with 2 additions and 0 deletions

View File

@ -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: