mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Use the saved errno value
Bug 591995
This commit is contained in:
parent
3ba64e72cf
commit
2889f1b8a3
@ -210,7 +210,7 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file,
|
|||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
|
|
||||||
g_set_error (error, G_IO_ERROR,
|
g_set_error (error, G_IO_ERROR,
|
||||||
g_io_error_from_errno (errno),
|
g_io_error_from_errno (errsv),
|
||||||
_("Error writing to file: %s"),
|
_("Error writing to file: %s"),
|
||||||
g_strerror (errsv));
|
g_strerror (errsv));
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user