diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-12-28 18:07:46 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-12-28 18:07:46 +0000 |
| commit | 236f965093b25cef95b14c303ead298ac3edc86a (patch) | |
| tree | 38ae289216125afc1481de2fc0bce66937c2062c | |
| parent | c4e486c2a1aea38df9c573d168979536ced9ad15 (diff) | |
| download | puzzles-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |