From 2889f1b8a322b0657f3c08a4f7e235e4c2c0f348 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 5cc40954..79872117 100644 --- a/gio/glocalfileoutputstream.c +++ b/gio/glocalfileoutputstream.c @@ -210,7 +210,7 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file, 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; -- 2.34.1