Skip to content

Commit

Permalink
Init the uninitialized member variable
Browse files Browse the repository at this point in the history
Member 'IterativeParsingReaderHandler::Logs' is not initialized in the
constructor. Add its initialization.
  • Loading branch information
EstherWx committed Dec 14, 2023
1 parent f9d5341 commit 4a95add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unittest/readertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ struct IterativeParsingReaderHandler {
uint32_t Logs[LogCapacity];
size_t LogCount;

IterativeParsingReaderHandler() : LogCount(0) {
IterativeParsingReaderHandler() : Logs(0), LogCount(0) {
}

bool Null() { RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_NULL; return true; }
Expand Down

0 comments on commit 4a95add

Please sign in to comment.