mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
cmJSONState: Add missing member initializer
In commit 7d2cc6ece6 (presets: Allow comments in presets files,
2024-06-23) we added a member without an initializer. This causes
dynamic analysis to report use of an uninitialized value.
This commit is contained in:
@@ -65,7 +65,7 @@ public:
|
||||
std::vector<JsonPair> parseStack;
|
||||
std::vector<Error> errors;
|
||||
std::string doc;
|
||||
bool allowComments;
|
||||
bool allowComments = false;
|
||||
|
||||
private:
|
||||
std::string GetJsonContext(Location loc);
|
||||
|
||||
Reference in New Issue
Block a user