mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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:
1
midend.c
1
midend.c
@ -1350,6 +1350,7 @@ char *midend_deserialise(midend_data *me,
|
|||||||
if (key[8] != ':') {
|
if (key[8] != ':') {
|
||||||
if (started)
|
if (started)
|
||||||
ret = "Data was incorrectly formatted for a saved game file";
|
ret = "Data was incorrectly formatted for a saved game file";
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
len = strcspn(key, ": ");
|
len = strcspn(key, ": ");
|
||||||
assert(len <= 8);
|
assert(len <= 8);
|
||||||
|
Reference in New Issue
Block a user