From: Simon Tatham Date: Wed, 6 Jul 2005 21:24:28 +0000 (+0000) Subject: Missing quit on error was leading to an assertion failure on some X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=d5fe59b25bf55f86889abc893c6bdea5b3d74472;p=sgt-puzzles.git Missing quit on error was leading to an assertion failure on some types of incorrectly formatted save file. [originally from svn r6079] --- 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);