From: Matthias Clasen Date: Fri, 28 Aug 2009 03:02:08 +0000 (-0400) Subject: Use the saved errno value X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2889f1b8a322b0657f3c08a4f7e235e4c2c0f348;p=dana%2Fcg-glib.git Use the saved errno value Bug 591995 --- 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;