chiark / gitweb /
Fix build failure on MacOS by initialising a variable which was
authorSimon Tatham <anakin@pobox.com>
Thu, 18 Feb 2010 18:12:12 +0000 (18:12 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 18 Feb 2010 18:12:12 +0000 (18:12 +0000)
reported as potentially-unused. (In fact, as far as I can tell, it's
only ever uninitialised in assertion-failing code paths, so not a
real bug.)

[originally from svn r8873]

signpost.c

index cfae28eefc103e8aee2f69f8f8625f251ff7d26f..fec2084439a68162afda0fc4e0cfad840572ab3e 100644 (file)
@@ -916,7 +916,7 @@ static int used_colour(game_state *state, int i, int start)
 
 static int head_number(game_state *state, int i, int *scratch)
 {
-    int off = 0, found = 0, start, ss, j = i, c, n, sz;
+    int off = 0, found = 0, start = 0, ss, j = i, c, n, sz;
     const char *why = NULL;
 
     assert(state->prev[i] == -1 && state->next[i] != -1);