From 9c8c668ea787649d3b0e136253b7cdf0b8536091 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 2 Dec 2017 21:14:09 -0600 Subject: [PATCH] main: do not evaluate module paths for modules that are not really on disk (closes #158) --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index a4335b5..4c4a729 100644 --- a/main.c +++ b/main.c @@ -322,7 +322,10 @@ apply_path(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int max pkgconf_dependency_t *dep = iter->data; pkg = pkgconf_pkg_verify_dependency(client, dep, NULL); - printf("%s\n", pkg->filename); + + /* a module entry with no filename is either virtual, static (builtin) or synthesized. */ + if (pkg->filename != NULL) + printf("%s\n", pkg->filename); pkgconf_pkg_free(&pkg_client, pkg); }