[Xfce4-commits] [xfce/xfce4-session] 06/06: fix coverity cid 87607 Unchecked return value from library
noreply at xfce.org
noreply at xfce.org
Thu May 4 14:08:28 CEST 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-session.
commit 95f4aa49d9ba4d968560d10710e68a2d6b6a405a
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Thu May 4 15:06:28 2017 +0300
fix coverity cid 87607 Unchecked return value from library
---
xfce4-session/xfsm-global.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/xfce4-session/xfsm-global.c b/xfce4-session/xfsm-global.c
index e10b8ed..c8106da 100644
--- a/xfce4-session/xfsm-global.c
+++ b/xfce4-session/xfsm-global.c
@@ -100,7 +100,10 @@ xfsm_verbose_real (const char *func,
gchar *oldlogfile = g_strdup_printf ("%s.last", logfile);
if (oldlogfile)
{
- rename (logfile, oldlogfile);
+ if (rename (logfile, oldlogfile) != 0)
+ {
+ g_warning ("unable to rename logfile");
+ }
g_free (oldlogfile);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list