Commit 7e738c2c authored by Thomas Schlichter's avatar Thomas Schlichter Committed by cig

Further fix segmentation fault by also initializing the allocated memory

parent 030fc5a2
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment