Skip to content

Commit

Permalink
Initalizes list_ with null points
Browse files Browse the repository at this point in the history
  • Loading branch information
RickBrice authored and aothms committed Apr 29, 2021
1 parent 76685d2 commit 64e6561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifcparse/IfcParse.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace IfcParse {

public:
ArgumentList() : size_(0), list_(0) {}
ArgumentList(size_t n) : size_(n), list_(new Argument*[size_]) {}
ArgumentList(size_t n) : size_(n), list_(new Argument*[size_] {0}) {}
~ArgumentList();

void read(IfcSpfLexer* t, std::vector<unsigned int>& ids);
Expand Down

0 comments on commit 64e6561

Please sign in to comment.