[Xfce4-commits] [apps/parole] 01/01: Fix crash on clear history (lp 1214514)
noreply at xfce.org
noreply at xfce.org
Thu Mar 1 01:47:49 CET 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/parole.
commit b5bf84284eb560a098e755269500eaa916ace919
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Feb 28 19:47:42 2018 -0500
Fix crash on clear history (lp 1214514)
---
src/common/parole-rc-utils.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/common/parole-rc-utils.c b/src/common/parole-rc-utils.c
index c8c30c6..8414886 100644
--- a/src/common/parole-rc-utils.c
+++ b/src/common/parole-rc-utils.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <glib.h>
+#include <glib/gstdio.h>
#include "parole-rc-utils.h"
@@ -100,9 +101,6 @@ void parole_clear_history_file_full(const gchar *relpath) {
history = xfce_resource_save_location(XFCE_RESOURCE_CACHE, relpath, FALSE);
if ( history ) {
- FILE *f;
- f = fopen(history, "w");
- fclose(f);
- g_free(history);
+ g_unlink (history);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list