Missing quit on error was leading to an assertion failure on some

types of incorrectly formatted save file.

[originally from svn r6079]
This commit is contained in:
Simon Tatham
2005-07-06 21:24:28 +00:00
parent d7588e6048
commit d5fe59b25b

View File

@ -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);