Initialize variables to NULL/0 in nr_dlschsim, pucchsim, nr_ulschsim
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user