summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin C <charetjc@gmail.com>2013-02-02 10:11:42 (GMT)
committerJustin C <charetjc@gmail.com>2013-02-02 10:11:42 (GMT)
commit757820fe1c67290328c77802ea7718505b77f437 (patch)
treea7081c85fb1ca0d744b16f5629b5f77a38f764be
parentaf0658a8fe441ebb0eb3d238e7055fd592343605 (diff)
missing NULL check when normalization exceeds limit for elements
-rw-r--r--src/csgtermnormalizer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csgtermnormalizer.cc b/src/csgtermnormalizer.cc
index e2474e9..81fab80 100644
--- a/src/csgtermnormalizer.cc
+++ b/src/csgtermnormalizer.cc
@@ -20,7 +20,7 @@ shared_ptr<CSGTerm> CSGTermNormalizer::normalize(const shared_ptr<CSGTerm> &root
PRINTB("WARNING: Normalized tree is growing past %d elements. Aborting normalization.\n", this->limit);
// Clean up any partially evaluated terms
shared_ptr<CSGTerm> newroot = root, tmproot;
- while (newroot != tmproot) {
+ while (newroot && newroot != tmproot) {
tmproot = newroot;
newroot = collapse_null_terms(tmproot);
}
contact: Jan Huwald // Impressum