From 14e3176507d9e5a1c7ad92c668ba90db3df302fd Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 31 Dec 2019 10:12:04 -0500 Subject: bugfix: return empty string if binary has no prior RPATH defined --- src/rpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpath.c') 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) { -- cgit