From 979cbec2379b424ee2eafbdd9c80a113c12ea635 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Wed, 23 Sep 2015 09:44:58 -0500 Subject: [PATCH] Fully init OurReader See #363, similar to #364. --- src/lib_json/json_reader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index a2b7885..ade7890 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -1031,7 +1031,9 @@ private: OurReader::OurReader(OurFeatures const& features) : errors_(), document_(), begin_(), end_(), current_(), lastValueEnd_(), - lastValue_(), commentsBefore_(), features_(features), collectComments_() { + lastValue_(), commentsBefore_(), + stackDepth_(0), + features_(features), collectComments_() { } bool OurReader::parse(const char* beginDoc,