fixed missing initialization of PUSCH scrambling sequence

This commit is contained in:
Ismael Gomez 2017-06-28 14:59:54 +02:00
parent 2c85d3f890
commit 6c0587e5a4
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ int srslte_pusch_set_rnti(srslte_pusch_t *q, uint16_t rnti) {
uint32_t i;
if (!q->users[rnti]) {
q->users[rnti] = malloc(sizeof(srslte_pusch_user_t));
q->users[rnti] = calloc(1, sizeof(srslte_pusch_user_t));
if (q->users[rnti]) {
for (i = 0; i < SRSLTE_NSUBFRAMES_X_FRAME; i++) {
if (srslte_sequence_pusch(&q->users[rnti]->seq[i], rnti, 2 * i, q->cell.id,