Commit dda375f1 authored by miller86's avatar miller86

fixing code path that can cause malloc for negative size

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@26771 18c085ea-50e0-402c-830e-de6fd14e8384
parent 8722afa3
......@@ -122,11 +122,13 @@ static inline bool LineIntersectsBox(double *, double, double, double,
// Hank Childs, Mon Sep 13 19:01:26 PDT 2010
// Initialize new data members for optimizing results.
//
// Mark C. Miller, Tue Jul 21 12:00:18 PDT 2015
// Prevent eventual malloc for negative size when/if els<=0.
// ****************************************************************************
avtIntervalTree::avtIntervalTree(int els, int dims, bool rc)
{
nElements = els;
nElements = els>0?els:1;
nDims = dims;
hasBeenCalculated = false;
requiresCommunication = rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment