ref: 236f965093b25cef95b14c303ead298ac3edc86a
parent: c4e486c2a1aea38df9c573d168979536ced9ad15
author: Simon Tatham <anakin@pobox.com>
date: Wed Dec 28 13:07:46 EST 2011
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]
--- a/gtk.c
+++ b/gtk.c
@@ -2705,6 +2705,7 @@
return 1;
}
sfree(realname);
+ ctx.error = 0;
midend_serialise(me, savefile_write, &ctx);
if (ctx.error) {
fprintf(stderr, "%s: write: %s\n", realname,