~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b52230
)
Don't report an error when loading a saved game from the command
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 23 Aug 2005 12:49:21 +0000
(12:49 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 23 Aug 2005 12:49:21 +0000
(12:49 +0000)
line unless there really _is_ an error!
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6203
cda61777
-01e9-0310-a592-
d414129be87e
gtk.c
patch
|
blob
|
blame
|
history
diff --git
a/gtk.c
b/gtk.c
index
6fef7b8
..
b72752a
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) {