[glib/glib-2-36] g_file_set_contents(): fix simple logic error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-36] g_file_set_contents(): fix simple logic error
- Date: Sun, 9 Jun 2013 22:40:59 +0000 (UTC)
commit c244222d65d2e9c1fe05e46207a7aedde45e1e86
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Jun 3 17:59:29 2013 -0400
g_file_set_contents(): fix simple logic error
CI FTW.
glib/gfileutils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]