From 846fc0b15a60e435ce417119ff2cc65b7ff901dc Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 28 Mar 2021 19:16:11 +0200 Subject: [PATCH] Always initialize members --- src/core/system_parameters/reed_solomon.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/system_parameters/reed_solomon.h b/src/core/system_parameters/reed_solomon.h index 24a4f6ad3..977ea53e3 100644 --- a/src/core/system_parameters/reed_solomon.h +++ b/src/core/system_parameters/reed_solomon.h @@ -126,16 +126,16 @@ private: std::vector d_genpoly_coeff; // used for encoding std::vector d_genpoly_index; // used for encoding - size_t d_data_in_block; // number of information symbols in a block + size_t d_data_in_block{}; // number of information symbols in a block - int d_nroots; // number of parity symbols in a block - int d_prim; // The primitive root of the generator poly - int d_pad; // the number of pad symbols in a block - int d_iprim; // prim-th root of 1, index form - int d_fcr; // first consecutive root + int d_nroots{}; // number of parity symbols in a block + int d_prim{}; // The primitive root of the generator poly + int d_pad{}; // the number of pad symbols in a block + int d_iprim{}; // prim-th root of 1, index form + int d_fcr{}; // first consecutive root - uint8_t d_min_poly; // primitive polynomial - uint8_t d_a0; // auxiliar variable + uint8_t d_min_poly{}; // primitive polynomial + uint8_t d_a0{}; // auxiliar variable }; /** \} */