[glib/glib-2-20] Use the saved errno value
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/glib-2-20] Use the saved errno value
- Date: Fri, 28 Aug 2009 03:54:02 +0000 (UTC)
commit ca79339e228733c83f5956ba22f457cf14981b30
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 354ee32..29fe117 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]