aboutsummaryrefslogtreecommitdiff
path: root/signpost.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-02-18 18:12:12 +0000
committerSimon Tatham <anakin@pobox.com>2010-02-18 18:12:12 +0000
commitd54bbdadeef015f9360dddfd6284b72f9937ca94 (patch)
treee110adaa48d7a9db793b41c917f132269274cb03 /signpost.c
parent7011d13ae7a662d43238601a63a8992b71e19d56 (diff)
downloadpuzzles-d54bbdadeef015f9360dddfd6284b72f9937ca94.zip
puzzles-d54bbdadeef015f9360dddfd6284b72f9937ca94.tar.gz
puzzles-d54bbdadeef015f9360dddfd6284b72f9937ca94.tar.bz2
puzzles-d54bbdadeef015f9360dddfd6284b72f9937ca94.tar.xz
Fix build failure on MacOS by initialising a variable which was
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]
Diffstat (limited to 'signpost.c')
-rw-r--r--signpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signpost.c b/signpost.c
index cfae28e..fec2084 100644
--- a/signpost.c
+++ b/signpost.c
@@ -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);