From c244222d65d2e9c1fe05e46207a7aedde45e1e86 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 80f4be4..67677fb 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); -- 2.7.4