mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-01 00:32:00 +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() {
|
||||
#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
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user