mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -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));
|
||||
} else {
|
||||
err = midend_deserialise(fe->me, savefile_read, fp);
|
||||
sprintf(errbuf, "%.800s", err);
|
||||
fclose(fp);
|
||||
if (err)
|
||||
sprintf(errbuf, "%.800s", err);
|
||||
fclose(fp);
|
||||
}
|
||||
}
|
||||
if (*errbuf) {
|
||||
|
Reference in New Issue
Block a user