Further fix segmentation fault by also initializing the allocated memory

This commit is contained in:
Thomas Schlichter
2019-12-06 10:46:51 +01:00
committed by cig
parent 030fc5a2f5
commit 7e738c2c39
+2
View File
@@ -553,6 +553,8 @@ int main(int argc, char **argv)
RC.nb_nr_macrlc_inst = 1;
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();
gNB_mac = RC.nrmac[0];