summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg.c b/pkg.c
index a4733d6..a8980f0 100644
--- a/pkg.c
+++ b/pkg.c
@@ -222,6 +222,7 @@ static Package *
add_virtual_pkgconfig_package (void)
{
Package *pkg = NULL;
+ gchar *path_quoted;
pkg = g_new0 (Package, 1);
@@ -234,7 +235,8 @@ add_virtual_pkgconfig_package (void)
if (pkg->vars == NULL)
pkg->vars = g_hash_table_new (g_str_hash, g_str_equal);
- g_hash_table_insert (pkg->vars, "pc_path", pkg_config_pc_path);
+ path_quoted = g_shell_quote (pkg_config_pc_path);
+ g_hash_table_insert (pkg->vars, "pc_path", path_quoted);
debug_spew ("Adding virtual 'pkg-config' package to list of known packages\n");
g_hash_table_insert (packages, pkg->key, pkg);