From 563fe5bbbea3505c930f233955bb420b799e86da Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Thu, 5 Mar 2020 14:13:11 +0800 Subject: [PATCH] PrettyWriter constructor uninitialized member (#1654) Fix #1653 --- include/rapidjson/prettywriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index 45afb694..94eeb69d 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -60,7 +60,7 @@ public: explicit PrettyWriter(StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) : - Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {} + Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4), formatOptions_(kFormatDefault) {} #if RAPIDJSON_HAS_CXX11_RVALUE_REFS PrettyWriter(PrettyWriter&& rhs) :