From 80fec167b003bde3a34e2af03653fc073c9f2859 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Fri, 13 Dec 2024 09:55:28 +0100 Subject: [PATCH] Fix use-after-move --- src/MachO/RPathCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MachO/RPathCommand.cpp b/src/MachO/RPathCommand.cpp index 000ca44783..306a046ab6 100644 --- a/src/MachO/RPathCommand.cpp +++ b/src/MachO/RPathCommand.cpp @@ -26,7 +26,7 @@ RPathCommand::RPathCommand(std::string path) : LoadCommand::LoadCommand(LoadCommand::TYPE::RPATH, 0), path_(std::move(path)) { - size_ = align(sizeof(details::rpath_command) + path.size() + 1, sizeof(uint64_t)); + size_ = align(sizeof(details::rpath_command) + path_.size() + 1, sizeof(uint64_t)); original_data_.resize(size_); }