mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Don't report an error when loading a saved game from the command
line unless there really _is_ an error! [originally from svn r6203]
This commit is contained in:
5
gtk.c
5
gtk.c
@ -1447,8 +1447,9 @@ static frontend *new_window(char *arg, char **error)
|
|||||||
" nor a save file (%.400s)", err, strerror(errno));
|
" nor a save file (%.400s)", err, strerror(errno));
|
||||||
} else {
|
} else {
|
||||||
err = midend_deserialise(fe->me, savefile_read, fp);
|
err = midend_deserialise(fe->me, savefile_read, fp);
|
||||||
sprintf(errbuf, "%.800s", err);
|
if (err)
|
||||||
fclose(fp);
|
sprintf(errbuf, "%.800s", err);
|
||||||
|
fclose(fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (*errbuf) {
|
if (*errbuf) {
|
||||||
|
Reference in New Issue
Block a user