From ca79339e228733c83f5956ba22f457cf14981b30 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 27 Aug 2009 23:02:08 -0400 Subject: [PATCH] Use the saved errno value Bug 591995 --- gio/glocalfileoutputstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c index 354ee32bc..29fe11782 100644 --- a/gio/glocalfileoutputstream.c +++ b/gio/glocalfileoutputstream.c @@ -198,7 +198,7 @@ g_local_file_output_stream_close (GOutputStream *stream, int errsv = errno; g_set_error (error, G_IO_ERROR, - g_io_error_from_errno (errno), + g_io_error_from_errno (errsv), _("Error writing to file: %s"), g_strerror (errsv)); goto err_out;