Use the saved errno value

Bug 591995
This commit is contained in:
Matthias Clasen 2009-08-27 23:02:08 -04:00
parent 1674764f0c
commit ca79339e22

View File

@ -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;