aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-11-15 17:39:54 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-11-19 11:10:37 +0000
commit20284c4dbcf62e04cd53543fdd0779b6a10e3cff (patch)
tree14fdb17144ef67a14f21ca9af05d395e84a44b10 /tests
parent0716a20f987f34e9b173207b27f6314f526a9433 (diff)
properly initialize si3 in test_is_ccch_for_agch_setup()
Prevent potential use of uninitialized memory in paging test. Change-Id: Ie8f8fc3c4a9e4cc18fc85b6822110de79da4246b Related: CID#188828
Diffstat (limited to 'tests')
-rw-r--r--tests/paging/paging_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/paging/paging_test.c b/tests/paging/paging_test.c
index 18708e24..f112404a 100644
--- a/tests/paging/paging_test.c
+++ b/tests/paging/paging_test.c
@@ -116,7 +116,7 @@ static struct gsm_bts_trx *test_is_ccch_for_agch_setup(uint8_t bs_ag_blks_res)
{
static struct gsm_bts_trx trx;
static struct gsm_bts bts;
- struct gsm48_system_information_type_3 si3;
+ struct gsm48_system_information_type_3 si3 = { 0 };
si3.control_channel_desc.bs_ag_blks_res = bs_ag_blks_res;
trx.bts = &bts;
bts.si_valid |= 0x8;