[template-glib] locator: use g_build_filename()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] locator: use g_build_filename()
- Date: Tue, 24 Oct 2017 12:23:31 +0000 (UTC)
commit fe2e264ffaa65078bedacf276b2709531d4f72d1
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 24 05:23:01 2017 -0700
locator: use g_build_filename()
This fixes an issue with accessing resource:// based paths.
src/tmpl-template-locator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmpl-template-locator.c b/src/tmpl-template-locator.c
index db49fc2..ff3705b 100644
--- a/src/tmpl-template-locator.c
+++ b/src/tmpl-template-locator.c
@@ -40,7 +40,7 @@ tmpl_template_locator_locate_in_path (TmplTemplateLocator *self,
g_assert (path_base != NULL);
g_assert (path != NULL);
- full_path = g_build_path (path_base, path, NULL);
+ full_path = g_build_filename (path_base, path, NULL);
if (g_str_has_prefix (full_path, "resource://"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]