aboutsummaryrefslogtreecommitdiff
path: root/lib/rpath.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-06-03 00:10:25 -0400
committerGitHub <noreply@github.com>2020-06-03 00:10:25 -0400
commitd12170bb0cb936f1e48a677dbd96822db55bbda3 (patch)
tree1bd69fbd6460dff6f50e7a13e54693a534590104 /lib/rpath.c
parent6c140c35ae7bf2b5e6633f63e2bc2fba14fc22bc (diff)
downloadspmc-d12170bb0cb936f1e48a677dbd96822db55bbda3.tar.gz
Refactor fstree (#39)
* Refactor fstree, fstree_free, FSTree type * Add FSRec structure * Refactor fstree usage * Decrease starting size of FSTree structure * Check if ManifestPackage is NULL, not if the requirements array if NULL * Use num_requirements instead of '!= NULL' * Add fstree test
Diffstat (limited to 'lib/rpath.c')
-rw-r--r--lib/rpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpath.c b/lib/rpath.c
index ae73574..0044db8 100644
--- a/lib/rpath.c
+++ b/lib/rpath.c
@@ -256,7 +256,7 @@ char *rpath_autodetect(const char *filename, FSTree *tree) {
// Is the shared library in the tree?
char *match = NULL;
- if ((match = dirname(strstr_array(tree->files, shared_library))) != NULL) {
+ if ((match = dirname(fstree_search(tree, shared_library))) != NULL) {
// Begin generating the relative path string
strcat(relative, origin);
strcat(relative, DIRSEPS);