fixed coverty bug

master
Ismael Gomez 8 years ago
parent 62b63462c9
commit 5b7d082a04

@ -87,6 +87,7 @@ typedef struct SRSLTE_API {
// This is to generate the scrambling seq for multiple CRNTIs
srslte_pusch_user_t **users;
srslte_sequence_t tmp_seq;
srslte_sch_t ul_sch;
bool shortened;

@ -536,8 +536,7 @@ int srslte_pusch_decode(srslte_pusch_t *q,
// Create sequence if does not exist
if (!q->users[rnti]) {
srslte_sequence_t tmp;
seq = &tmp;
seq = &q->tmp_seq;
if (srslte_sequence_pusch(seq, rnti, 2 * cfg->sf_idx, q->cell.id, cfg->nbits.nof_bits)) {
return SRSLTE_ERROR;
}

Loading…
Cancel
Save