aboutsummaryrefslogtreecommitdiff
path: root/src/rpath.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-31 10:12:04 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-31 10:12:04 -0500
commit14e3176507d9e5a1c7ad92c668ba90db3df302fd (patch)
treea7db97fb48bb5f81937c732fe5f531306646e200 /src/rpath.c
parent7404b077e4b21ef807e4f302cce59337f6558ee8 (diff)
downloadspmc-14e3176507d9e5a1c7ad92c668ba90db3df302fd.tar.gz
bugfix: return empty string if binary has no prior RPATH defined
Diffstat (limited to 'src/rpath.c')
-rw-r--r--src/rpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpath.c b/src/rpath.c
index 1412130..a6b6b6c 100644
--- a/src/rpath.c
+++ b/src/rpath.c
@@ -72,7 +72,7 @@ int has_rpath(const char *_filename) {
*/
char *rpath_get(const char *_filename) {
if ((has_rpath(_filename)) != 0) {
- return NULL;
+ return strdup("");
}
char *filename = strdup(_filename);
if (!filename) {