Skip to content

Commit 563fe5b

Browse files
authored
PrettyWriter constructor uninitialized member (Tencent#1654)
Fix Tencent#1653
1 parent 2bed293 commit 563fe5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/prettywriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class PrettyWriter : public Writer<OutputStream, SourceEncoding, TargetEncoding,
6060

6161

6262
explicit PrettyWriter(StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) :
63-
Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {}
63+
Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4), formatOptions_(kFormatDefault) {}
6464

6565
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
6666
PrettyWriter(PrettyWriter&& rhs) :

0 commit comments

Comments
 (0)