Commit 54d5676c authored by Robert Schmidt's avatar Robert Schmidt

Initialize variables to NULL/0 in nr_dlschsim, pucchsim, nr_ulschsim

parent 5aed7d30
......@@ -412,7 +412,7 @@ int main(int argc, char **argv)
}
//configure UE
UE = malloc(sizeof(PHY_VARS_NR_UE));
UE = calloc(1, sizeof(*UE));
memcpy(&UE->frame_parms, frame_parms, sizeof(NR_DL_FRAME_PARMS));
//phy_init_nr_top(frame_parms);
......
......@@ -123,7 +123,7 @@ int main(int argc, char **argv)
int16_t amp=0x7FFF;
int nr_slot_tx=0;
int nr_frame_tx=0;
uint64_t actual_payload=0,payload_received;
uint64_t actual_payload = 0, payload_received = 0;
bool random_payload = true;
int nr_bit=1; // maximum value possible is 2
uint8_t m0=0;// higher layer paramater initial cyclic shift
......
......@@ -428,7 +428,7 @@ int main(int argc, char **argv)
phy_init_nr_gNB(gNB);
//configure UE
UE = malloc(sizeof(PHY_VARS_NR_UE));
UE = calloc(1, sizeof(*UE));
memcpy(&UE->frame_parms, frame_parms, sizeof(NR_DL_FRAME_PARMS));
UE->frame_parms.nb_antennas_tx = n_tx;
......
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