Changeset 14340


Ignore:
Timestamp:
02/12/13 08:07:03 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added check on index to avoid SegFaults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp

    r14294 r14340  
    2222        double  distance,beta,dx,dy;
    2323        double  maxdistance;
    24         int     index;
     24        int     index  = -1;
    2525        double *x      = contour->x;
    2626        double *y      = contour->y;
     
    7777                /*if not, call simplifyrec for the segments between ind0 and index
    7878                 * (index and ind1)*/
     79                _assert_(index!=-1);
    7980                simplify(contour,flags,ind0 ,index,tolerance);
    8081                simplify(contour,flags,index,ind1, tolerance);
Note: See TracChangeset for help on using the changeset viewer.