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:
c4e486c
)
Fix bug in --save caused by failure to initialise ctx.error to zero
author
Simon Tatham
<anakin@pobox.com>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
before later checking to see if an errno code was dumped in it.
[originally from svn r9373]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 1af877c24d1831fc667dfdcb21f5ddae398f66fb..e6a03665c4fbf8b419269a149e4e33f679dd57d1 100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-2705,6
+2705,7
@@
int main(int argc, char **argv)
return 1;
}
sfree(realname);
+ ctx.error = 0;
midend_serialise(me, savefile_write, &ctx);
if (ctx.error) {
fprintf(stderr, "%s: write: %s\n", realname,