Initialise all "intersect" elements to -1 to avoid confusion surrounding ={-1} syntax.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Bård Skaflestad 2012-06-18 16:34:11 +00:00 committed by Bård Skaflestad
parent e9931d8c9c
commit 37351d2adb

View File

@ -220,10 +220,12 @@ void findconnections(int n, int *pts[4],
int k2 = 0;
int i,j=0;
int intersect[4]= {-1};
int intersect[4];
int *tmp;
/* for (i=0; i<2*n; work[i++]=-1); */
for (i = 0; i < 4; i++) { intersect[i] = -1; }
for (i = 0; i<n-1; ++i){
/* pinched a-cell */