Skip to content

Commit 536fe28

Browse files
authored
Being explicit regarding the initialization of two member variables. (simdjson#765)
1 parent c814006 commit 536fe28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generic/stage2_build_tape.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ class structural_iterator {
105105
const size_t len;
106106
const uint32_t* const structural_indexes;
107107
size_t next_structural; // next structural index
108-
size_t idx; // location of the structural character in the input (buf)
109-
uint8_t c; // used to track the (structural) character we are looking at
108+
size_t idx{0}; // location of the structural character in the input (buf)
109+
uint8_t c{0}; // used to track the (structural) character we are looking at
110110
};
111111

112112
struct structural_parser {

0 commit comments

Comments
 (0)