From b903e61548b6025033ac6d49bcf885c82b95fe79 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 31 May 2019 10:50:50 +0200 Subject: [PATCH] Initialise all channel emulator attributes by default --- lib/include/srslte/phy/channel/channel.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/include/srslte/phy/channel/channel.h b/lib/include/srslte/phy/channel/channel.h index 9278739f6..31fb35a1e 100644 --- a/lib/include/srslte/phy/channel/channel.h +++ b/lib/include/srslte/phy/channel/channel.h @@ -61,14 +61,14 @@ public: void run(cf_t* in[SRSLTE_MAX_PORTS], cf_t* out[SRSLTE_MAX_PORTS], uint32_t len, const srslte_timestamp_t& t); private: - srslte_channel_fading_t* fading[SRSLTE_MAX_PORTS]; - srslte_channel_delay_t* delay[SRSLTE_MAX_PORTS]; - srslte_channel_rlf_t* rlf; // RLF has no buffers / no multiple instance is required - cf_t* buffer_in = nullptr; - cf_t* buffer_out = nullptr; - uint32_t nof_ports = 0; - uint32_t current_srate = 0; - args_t args; + srslte_channel_fading_t* fading[SRSLTE_MAX_PORTS] = {}; + srslte_channel_delay_t* delay[SRSLTE_MAX_PORTS] = {}; + srslte_channel_rlf_t* rlf = nullptr; // RLF has no buffers / no multiple instance is required + cf_t* buffer_in = nullptr; + cf_t* buffer_out = nullptr; + uint32_t nof_ports = 0; + uint32_t current_srate = 0; + args_t args = {}; }; typedef std::unique_ptr channel_ptr;