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:
Brad King 2024-07-08 11:41:09 -04:00
parent ead3548bed
commit ccd4612296

View File

@ -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);