mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
g_file_set_contents(): fix simple logic error
CI FTW.
This commit is contained in:
committed by
Matthias Clasen
parent
dad3cb55cf
commit
c244222d65
@@ -1122,7 +1122,7 @@ write_to_temp_file (const gchar *contents,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (g_close (fd, err))
|
if (!g_close (fd, err))
|
||||||
{
|
{
|
||||||
g_unlink (tmp_name);
|
g_unlink (tmp_name);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user