Skip to content

Commit 979cbec

Browse files
committed
Fully init OurReader
See open-source-parsers#363, similar to open-source-parsers#364.
1 parent 2e625dd commit 979cbec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib_json/json_reader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,9 @@ class OurReader {
10311031

10321032
OurReader::OurReader(OurFeatures const& features)
10331033
: errors_(), document_(), begin_(), end_(), current_(), lastValueEnd_(),
1034-
lastValue_(), commentsBefore_(), features_(features), collectComments_() {
1034+
lastValue_(), commentsBefore_(),
1035+
stackDepth_(0),
1036+
features_(features), collectComments_() {
10351037
}
10361038

10371039
bool OurReader::parse(const char* beginDoc,

0 commit comments

Comments
 (0)