Preserve errno when using g_set_error with _() and g_strerror()

This commit is contained in:
Christian Persch
2008-05-27 23:44:35 +02:00
committed by Alexander Larsson
parent 80cfd099f3
commit 1cbdd2495d
2 changed files with 3 additions and 2 deletions

View File

@@ -303,7 +303,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 renaming temporary file: %s"),
g_strerror (errsv));
goto err_out;