Skip to content

Commit

Permalink
Fix use-after-move
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Dec 13, 2024
1 parent 35ae8dc commit 80fec16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MachO/RPathCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
}

Expand Down

0 comments on commit 80fec16

Please sign in to comment.