diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-08-04 17:07:51 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-08-04 17:07:51 +0000 |
| commit | 2e214d740cc9ea2c8061713b0d944f1f29374206 (patch) | |
| tree | 9d9569d9dc50f871a59c518cabc86403609a670e /slant.c | |
| parent | e55838bc9b0d173ca539d0cfe714495b5c12b9dd (diff) | |
| download | puzzles-2e214d740cc9ea2c8061713b0d944f1f29374206.zip puzzles-2e214d740cc9ea2c8061713b0d944f1f29374206.tar.gz puzzles-2e214d740cc9ea2c8061713b0d944f1f29374206.tar.bz2 puzzles-2e214d740cc9ea2c8061713b0d944f1f29374206.tar.xz | |
Bug fix from James H: solve_game() was returning error messages in
the return value rather than in *error. In the old days type-
checking would have caught this, but now of course they're the same
type.
[originally from svn r6161]
Diffstat (limited to 'slant.c')
| -rw-r--r-- | slant.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -734,9 +734,10 @@ static char *solve_game(game_state *state, game_state *currstate, if (ret != 1) { sfree(soln); if (ret == 0) - return "This puzzle is not self-consistent"; + *error = "This puzzle is not self-consistent"; else - return "Unable to find a unique solution for this puzzle"; + *error = "Unable to find a unique solution for this puzzle"; + return NULL; } free_soln = TRUE; } |