mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-01 23:30:42 +08:00
Some pointer variables are not initialized.
This commit is contained in:
parent
ddf0a0e83c
commit
d5694dc15d
@ -1627,6 +1627,8 @@ class TinyGLTF::PImpl
|
|||||||
|
|
||||||
PImpl() {
|
PImpl() {
|
||||||
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
||||||
|
schema_doc_ = nullptr;
|
||||||
|
schema_ = nullptr;
|
||||||
validator_ = nullptr;
|
validator_ = nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -1652,9 +1654,9 @@ class TinyGLTF::PImpl
|
|||||||
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
#if defined(TINYGLTF_ENABLE_SCHEMA_VALIDATOR)
|
||||||
|
|
||||||
std::string schema_json_string_;
|
std::string schema_json_string_;
|
||||||
rapidjson::Document *schema_doc_;
|
rapidjson::Document *schema_doc_ = nullptr;
|
||||||
rapidjson::SchemaDocument *schema_;
|
rapidjson::SchemaDocument *schema_ = nullptr;
|
||||||
rapidjson::SchemaValidator *validator_;
|
rapidjson::SchemaValidator *validator_ = nullptr;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user