Commit 030fc5a2 authored by Guido Casati's avatar Guido Casati Committed by cig

Bugfix segmentation fault in dlsim for missing memory allocation

parent d34d269d
...@@ -552,6 +552,7 @@ int main(int argc, char **argv) ...@@ -552,6 +552,7 @@ int main(int argc, char **argv)
nr_gold_pdcch(UE,0,2); nr_gold_pdcch(UE,0,2);
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));
mac_top_init_gNB(); mac_top_init_gNB();
gNB_mac = RC.nrmac[0]; 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