diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-31 10:12:04 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-31 10:12:04 -0500 |
commit | 14e3176507d9e5a1c7ad92c668ba90db3df302fd (patch) | |
tree | a7db97fb48bb5f81937c732fe5f531306646e200 /src | |
parent | 7404b077e4b21ef807e4f302cce59337f6558ee8 (diff) | |
download | spmc-14e3176507d9e5a1c7ad92c668ba90db3df302fd.tar.gz |
bugfix: return empty string if binary has no prior RPATH defined
Diffstat (limited to 'src')
-rw-r--r-- | src/rpath.c | 2 |
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) { |