aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2007-03-26 10:24:25 +0000
committerSimon Tatham <anakin@pobox.com>2007-03-26 10:24:25 +0000
commit9885a86a27cec2ce38b1022e3a15b8c808e70db8 (patch)
treefc572762ba22920949cb64bf5fc01bb24ea7644b
parent0589681d9dca09548023ddbd0b8eab5be21d8ce8 (diff)
downloadpuzzles-9885a86a27cec2ce38b1022e3a15b8c808e70db8.zip
puzzles-9885a86a27cec2ce38b1022e3a15b8c808e70db8.tar.gz
puzzles-9885a86a27cec2ce38b1022e3a15b8c808e70db8.tar.bz2
puzzles-9885a86a27cec2ce38b1022e3a15b8c808e70db8.tar.xz
Er, and now do that _without_ introducing further segfaults.
[originally from svn r7409]
-rw-r--r--rect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rect.c b/rect.c
index fb8f787..1fe873b 100644
--- a/rect.c
+++ b/rect.c
@@ -1692,7 +1692,7 @@ static char *new_game_desc(game_params *params, random_state *rs,
/*
* If we've succeeded, then terminate the loop.
*/
- if (ret)
+ if (ret == 1)
break;
}