diff options
Diffstat (limited to 'glib/gfileutils.c')
-rw-r--r-- | glib/gfileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 80f4be4d0..67677fb54 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -1122,7 +1122,7 @@ write_to_temp_file (const gchar *contents, #endif errno = 0; - if (g_close (fd, err)) + if (!g_close (fd, err)) { g_unlink (tmp_name); |