[glib] Use the saved errno value



commit 2889f1b8a322b0657f3c08a4f7e235e4c2c0f348
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 27 23:02:08 2009 -0400

    Use the saved errno value
    
    Bug 591995

 gio/glocalfileoutputstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c
index 5cc4095..7987211 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]