[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Fix segfault on clearing empty log (Bug #13365)

noreply at xfce.org noreply at xfce.org
Sat Feb 18 20:01:58 CET 2017


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.

commit f8691b209d17748a768a5ce199a2f05890acd78e
Author: Igor <f2404 at yandex.ru>
Date:   Sat Feb 18 21:13:45 2017 +0300

    Fix segfault on clearing empty log (Bug #13365)
---
 xfce4-notifyd/xfce-notify-log.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xfce4-notifyd/xfce-notify-log.c b/xfce4-notifyd/xfce-notify-log.c
index 92d50ed..df32ce2 100644
--- a/xfce4-notifyd/xfce-notify-log.c
+++ b/xfce4-notifyd/xfce-notify-log.c
@@ -124,7 +124,8 @@ void xfce_notify_log_clear (void)
     {
         FILE *f;
         f = fopen (notify_log, "w");
-        fclose (f);
+        if (f)
+            fclose (f);
         g_free (notify_log);
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list