Fixes initialization issues in IfcEntityInstanceData constructors

attributes_ was allocated as an array of Argument pointers but the pointers were uninitialized in the construction. Initialization was done in the HeaderEntity class constructor.

offset_in_file_ is uninitialized in one constructor
This commit is contained in:
Rick Brice
2021-04-17 19:33:06 -07:00
committed by Thomas Krijnen
parent 6c8858e51d
commit 75040b6ffb
2 changed files with 5 additions and 14 deletions
-5
View File
@@ -43,11 +43,6 @@ HeaderEntity::HeaderEntity(const char * const datatype, size_t size, IfcFile* fi
if (file) {
offset_in_file_ = file->stream->Tell();
load();
} else {
// attributes_ = new Argument*[size];
for (size_t i = 0; i < size; ++i) {
attributes_[i] = 0;
}
}
}