[gnome-builder] egg-file-chooser-entry: fix Clang diagnostic
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] egg-file-chooser-entry: fix Clang diagnostic
- Date: Sat, 3 Dec 2016 15:19:35 +0000 (UTC)
commit f8c742fba2338393deb14f564c6f79c4d8e9f37b
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sat Dec 3 16:17:28 2016 +0100
egg-file-chooser-entry: fix Clang diagnostic
Clang see this as an unused variable
in your diagnostics
contrib/egg/egg-file-chooser-entry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/contrib/egg/egg-file-chooser-entry.c b/contrib/egg/egg-file-chooser-entry.c
index e166939..7ffb9d2 100644
--- a/contrib/egg/egg-file-chooser-entry.c
+++ b/contrib/egg/egg-file-chooser-entry.c
@@ -513,7 +513,7 @@ file_collapse (GFile *file)
{
g_autofree gchar *freeme = path;
- path = g_build_filename (g_get_home_dir (), path, NULL);
+ path = g_build_filename (g_get_home_dir (), freeme, NULL);
}
if (g_str_has_prefix (path, g_get_home_dir ()))
@@ -521,7 +521,7 @@ file_collapse (GFile *file)
g_autofree gchar *freeme = path;
path = g_build_filename ("~",
- path + strlen (g_get_home_dir ()),
+ freeme + strlen (g_get_home_dir ()),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]