aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_shlib_spm_shlib_deps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_shlib_spm_shlib_deps.c b/tests/test_shlib_spm_shlib_deps.c
index 46a06db..4f0bfd4 100644
--- a/tests/test_shlib_spm_shlib_deps.c
+++ b/tests/test_shlib_spm_shlib_deps.c
@@ -30,7 +30,7 @@ static char *find_library(const char *name) {
}
for (size_t i = 0; LIBRARY_SEARCH_PATH[i] != NULL; i++) {
- path = join_ex(path, DIRSEPS, LIBRARY_SEARCH_PATH[i], name);
+ path = join_ex(DIRSEPS, LIBRARY_SEARCH_PATH[i], name, NULL);
if (path != NULL && exists(path) == 0) {
break;
}