chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196695a
)
Don't report an error when loading a saved game from the command
author
Simon Tatham
<anakin@pobox.com>
Tue, 23 Aug 2005 12:49:21 +0000
(12:49 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 23 Aug 2005 12:49:21 +0000
(12:49 +0000)
line unless there really _is_ an error!
[originally from svn r6203]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 6fef7b864338bca15b12ec5cc498505331fa2e44..b72752a538221c13b6576c5590409d3fbc044c59 100644
(file)
--- a/
gtk.c
+++ b/
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) {