From 536fe28f8f9f3048855499ee3e2d4cacff29d92b Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 22 Apr 2020 12:46:55 -0400 Subject: [PATCH] Being explicit regarding the initialization of two member variables. (#765) --- src/generic/stage2_build_tape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/stage2_build_tape.h b/src/generic/stage2_build_tape.h index 4dab3304..1175eb81 100644 --- a/src/generic/stage2_build_tape.h +++ b/src/generic/stage2_build_tape.h @@ -105,8 +105,8 @@ public: const size_t len; const uint32_t* const structural_indexes; size_t next_structural; // next structural index - size_t idx; // location of the structural character in the input (buf) - uint8_t c; // used to track the (structural) character we are looking at + size_t idx{0}; // location of the structural character in the input (buf) + uint8_t c{0}; // used to track the (structural) character we are looking at }; struct structural_parser {