From 52799192ab348cfe88b836f6f48cce046a13c33b Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 6 May 2020 14:39:59 +0200 Subject: [PATCH] pssch_ue: fix uninit var --- lib/examples/pssch_ue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/examples/pssch_ue.c b/lib/examples/pssch_ue.c index 8c4de9da5..327671d40 100644 --- a/lib/examples/pssch_ue.c +++ b/lib/examples/pssch_ue.c @@ -338,8 +338,8 @@ int main(int argc, char** argv) } // PSCCH Channel estimation - srslte_chest_sl_cfg_t pscch_chest_sl_cfg; - srslte_chest_sl_t pscch_chest; + srslte_chest_sl_cfg_t pscch_chest_sl_cfg = {}; + srslte_chest_sl_t pscch_chest = {}; if (srslte_chest_sl_init(&pscch_chest, SRSLTE_SIDELINK_PSCCH, cell_sl, sl_comm_resource_pool) != SRSLTE_SUCCESS) { ERROR("Error in chest PSCCH init\n"); return SRSLTE_ERROR; @@ -350,8 +350,8 @@ int main(int argc, char** argv) return SRSLTE_ERROR; } - srslte_chest_sl_cfg_t pssch_chest_sl_cfg; - srslte_chest_sl_t pssch_chest; + srslte_chest_sl_cfg_t pssch_chest_sl_cfg = {}; + srslte_chest_sl_t pssch_chest = {}; if (srslte_chest_sl_init(&pssch_chest, SRSLTE_SIDELINK_PSSCH, cell_sl, sl_comm_resource_pool) != SRSLTE_SUCCESS) { ERROR("Error in chest PSSCH init\n"); return SRSLTE_ERROR;