From 37351d2adb3942c3127323576bf9b815d935d1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 18 Jun 2012 16:34:11 +0000 Subject: [PATCH] Initialise all "intersect" elements to -1 to avoid confusion surrounding ={-1} syntax. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bård Skaflestad --- facetopology.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/facetopology.c b/facetopology.c index b5a10193..a63f4206 100644 --- a/facetopology.c +++ b/facetopology.c @@ -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