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:
Simon Tatham
2005-08-23 12:49:21 +00:00
parent 196695afdf
commit d558bb240a

5
gtk.c
View File

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