Index: /issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp
===================================================================
--- /issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp	(revision 14339)
+++ /issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp	(revision 14340)
@@ -22,5 +22,5 @@
 	double  distance,beta,dx,dy;
 	double  maxdistance;
-	int     index;
+	int     index  = -1;
 	double *x      = contour->x;
 	double *y      = contour->y;
@@ -77,4 +77,5 @@
 		/*if not, call simplifyrec for the segments between ind0 and index
 		 * (index and ind1)*/
+		_assert_(index!=-1);
 		simplify(contour,flags,ind0 ,index,tolerance);
 		simplify(contour,flags,index,ind1, tolerance);
