mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Merge branch 'local-output-stream-prevent-double-fd-close' into 'main'
glocalfileoutputstream: Do not double-close an fd on unlink error See merge request GNOME/glib!2901
This commit is contained in:
commit
7b53edbf26
@ -1194,7 +1194,8 @@ handle_overwrite_open (const char *filename,
|
||||
if (replace_destination_set)
|
||||
{
|
||||
g_close (fd, NULL);
|
||||
|
||||
fd = -1;
|
||||
|
||||
if (g_unlink (filename) != 0)
|
||||
{
|
||||
errsv = errno;
|
||||
|
Loading…
Reference in New Issue
Block a user