From fc98c13fdec0e5ea7d8827be0eb1f1add31ad946 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 3 Jun 2013 17:59:29 -0400 Subject: [PATCH] g_file_set_contents(): fix simple logic error CI FTW. --- glib/gfileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 441e1753d..adf83d32e 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);