Further fix segmentation fault by also initializing the allocated memory
This commit is contained in:
@@ -553,6 +553,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
RC.nb_nr_macrlc_inst = 1;
|
RC.nb_nr_macrlc_inst = 1;
|
||||||
RC.nb_nr_mac_CC = (int*)malloc(RC.nb_nr_macrlc_inst*sizeof(int));
|
RC.nb_nr_mac_CC = (int*)malloc(RC.nb_nr_macrlc_inst*sizeof(int));
|
||||||
|
for (i = 0; i < RC.nb_nr_macrlc_inst; i++)
|
||||||
|
RC.nb_nr_mac_CC[i] = 1;
|
||||||
mac_top_init_gNB();
|
mac_top_init_gNB();
|
||||||
gNB_mac = RC.nrmac[0];
|
gNB_mac = RC.nrmac[0];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user