[glib] g_file_set_contents(): fix simple logic error
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] g_file_set_contents(): fix simple logic error
- Date: Mon, 3 Jun 2013 22:00:04 +0000 (UTC)
commit fc98c13fdec0e5ea7d8827be0eb1f1add31ad946
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 441e175..adf83d3 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]