diff options
Diffstat (limited to 'src/patchelf.cc')
-rw-r--r-- | src/patchelf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc index 246496d..4cc5e18 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -1500,7 +1500,7 @@ void ElfFile<ElfFileParamNames>::modifyRPath(RPathOp op, debug("new rpath is '%s'\n", newRPath.c_str()); - if (newRPath.size() <= rpathSize) { + if (rpath && newRPath.size() <= rpathSize) { memcpy(rpath, newRPath.c_str(), newRPath.size() + 1); return; } |