aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-12-28 18:07:46 +0000
committerSimon Tatham <anakin@pobox.com>2011-12-28 18:07:46 +0000
commit236f965093b25cef95b14c303ead298ac3edc86a (patch)
tree38ae289216125afc1481de2fc0bce66937c2062c
parentc4e486c2a1aea38df9c573d168979536ced9ad15 (diff)
downloadpuzzles-236f965093b25cef95b14c303ead298ac3edc86a.zip
puzzles-236f965093b25cef95b14c303ead298ac3edc86a.tar.gz
puzzles-236f965093b25cef95b14c303ead298ac3edc86a.tar.bz2
puzzles-236f965093b25cef95b14c303ead298ac3edc86a.tar.xz
Fix bug in --save caused by failure to initialise ctx.error to zero
before later checking to see if an errno code was dumped in it. [originally from svn r9373]
-rw-r--r--gtk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk.c b/gtk.c
index 1af877c..e6a0366 100644
--- 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,