From 096122ce3658e79e342d5c5ef0cee44521c7ea31 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 27 Aug 2005 09:35:14 +0000 Subject: [PATCH] OS X seems particularly picky about possibly uninitialised variables. Placate its optimiser (again). git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6223 cda61777-01e9-0310-a592-d414129be87e --- inertia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/inertia.c b/inertia.c index 2f1fd5d..a158363 100644 --- a/inertia.c +++ b/inertia.c @@ -304,6 +304,7 @@ static int find_gem_candidates(int w, int h, char *grid, /* * Find the starting square. */ + sx = -1; /* placate optimiser */ for (sy = 0; sy < h; sy++) { for (sx = 0; sx < w; sx++) if (AT(w, h, grid, sx, sy) == START) -- 2.11.0