encoding: fix an uninitialized field in gen_freq_params()

This is not critical, given that we set 'ElementsOf_RFL_NUMBER' to 0.
But still, let's ensure that all fields are initialized.

Change-Id: I4dd5202d1c4bd75baf0ab4f88ffefcc47272bd9c
Fixes: CID#272999
This commit is contained in:
Vadim Yanitskiy 2022-06-28 17:46:09 +07:00 committed by fixeria
parent 7ebdfc29da
commit 1a1e8307db
1 changed files with 2 additions and 0 deletions

View File

@ -573,6 +573,8 @@ static void gen_freq_params(Frequency_Parameters_t *freq_params,
fh_params.MAIO = pdch->fh.maio;
fh_params.GPRS_Mobile_Allocation.HSN = pdch->fh.hsn;
fh_params.GPRS_Mobile_Allocation.ElementsOf_RFL_NUMBER = 0;
memset(&fh_params.GPRS_Mobile_Allocation.RFL_NUMBER[0], 0x00,
sizeof(fh_params.GPRS_Mobile_Allocation.RFL_NUMBER));
/* Mobile Allocation bitmap */
fh_params.GPRS_Mobile_Allocation.UnionType = 0; /* MA bitmap */