aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-06 21:24:28 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-06 21:24:28 +0000
commitd5fe59b25bf55f86889abc893c6bdea5b3d74472 (patch)
tree94f3e975e24de49984119d3cbfce612b68caa40a /midend.c
parentd7588e60487337b6d0ca4a6280a812804afe08e6 (diff)
downloadpuzzles-d5fe59b25bf55f86889abc893c6bdea5b3d74472.zip
puzzles-d5fe59b25bf55f86889abc893c6bdea5b3d74472.tar.gz
puzzles-d5fe59b25bf55f86889abc893c6bdea5b3d74472.tar.bz2
puzzles-d5fe59b25bf55f86889abc893c6bdea5b3d74472.tar.xz
Missing quit on error was leading to an assertion failure on some
types of incorrectly formatted save file. [originally from svn r6079]
Diffstat (limited to 'midend.c')
-rw-r--r--midend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/midend.c b/midend.c
index 7ef05cb..691c643 100644
--- a/midend.c
+++ b/midend.c
@@ -1350,6 +1350,7 @@ char *midend_deserialise(midend_data *me,
if (key[8] != ':') {
if (started)
ret = "Data was incorrectly formatted for a saved game file";
+ goto cleanup;
}
len = strcspn(key, ": ");
assert(len <= 8);