mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-19 17:49:57 +00:00
Some pointer variables are not initialized.
This commit is contained in:
@@ -1627,6 +1627,8 @@ class TinyGLTF::PImpl
|
||||
|
||||
PImpl() {
|
||||
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
||||
schema_doc_ = nullptr;
|
||||
schema_ = nullptr;
|
||||
validator_ = nullptr;
|
||||
#endif
|
||||
}
|
||||
@@ -1652,9 +1654,9 @@ class TinyGLTF::PImpl
|
||||
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
||||
|
||||
std::string schema_json_string_;
|
||||
rapidjson::Document *schema_doc_;
|
||||
rapidjson::SchemaDocument *schema_;
|
||||
rapidjson::SchemaValidator *validator_;
|
||||
rapidjson::Document *schema_doc_ = nullptr;
|
||||
rapidjson::SchemaDocument *schema_ = nullptr;
|
||||
rapidjson::SchemaValidator *validator_ = nullptr;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user