aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-04 12:41:28 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-04 15:29:29 -0500
commit3bc3558ee85ba9259f1595016166876490b65241 (patch)
tree32282745f8560d216916465d541b492740a05477 /src
parente67fb792478c63d80bc0fcee79123b61e823760f (diff)
downloadspmc-3bc3558ee85ba9259f1595016166876490b65241.tar.gz
Stop using find_package
Diffstat (limited to 'src')
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 1aee09b..29cee37 100644
--- a/src/install.c
+++ b/src/install.c
@@ -47,7 +47,7 @@ int metadata_remove(const char *_path) {
* @return success=0, error=-1 (general), -2 (unable to create `destroot`)
*/
int install(const char *destroot, const char *_package) {
- char *package = find_package(_package);
+ char *package = strdup(_package);
if (!package) {
fprintf(SYSERROR);
return -1;