fix uninit vars reported by Coverity

This commit is contained in:
Andre Puschmann 2020-03-24 09:47:07 +01:00
parent 5e6828c3a0
commit b9a2217355
3 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ private:
rrc_interface_mac* rrc_h = nullptr;
stack_interface_mac* stack_h = nullptr;
srslte::log_ref log_h;
mac_interface_phy_lte::mac_phy_cfg_mbsfn_t phy_mbsfn_cfg;
mac_interface_phy_lte::mac_phy_cfg_mbsfn_t phy_mbsfn_cfg = {};
// RNTI search window scheduling
int si_window_length = -1, si_window_start = -1;

View File

@ -25,8 +25,8 @@
namespace srsue {
typedef struct {
int airplane_t_on_ms;
int airplane_t_off_ms;
int airplane_t_on_ms = -1;
int airplane_t_off_ms = -1;
} nas_sim_args_t;
class nas_args_t

View File

@ -372,7 +372,7 @@ public:
}
private:
phy_interface_mac_lte* phy_h;
phy_interface_mac_lte* phy_h = nullptr;
mac* mac_h = nullptr;
};