Fully init OurReader
authorChristopher Dunn <cdunn2001@gmail.com>
Wed, 23 Sep 2015 14:44:58 +0000 (09:44 -0500)
committerChristopher Dunn <cdunn2001@gmail.com>
Wed, 23 Sep 2015 14:44:58 +0000 (09:44 -0500)
See #363, similar to #364.

src/lib_json/json_reader.cpp

index a2b7885..ade7890 100644 (file)
@@ -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,