diff --git a/sandboxed_api/sandbox2/syscall.cc b/sandboxed_api/sandbox2/syscall.cc index 8879ac6..2b3ffad 100644 --- a/sandboxed_api/sandbox2/syscall.cc +++ b/sandboxed_api/sandbox2/syscall.cc @@ -82,7 +82,7 @@ std::vector Syscall::GetArgumentsDescription() const { } std::string Syscall::GetDescription() const { - const auto& arch = GetArchDescription(arch_); + const std::string arch = GetArchDescription(arch_); const std::string args = absl::StrJoin(GetArgumentsDescription(), ", "); return absl::StrFormat("%s %s [%d](%s) IP: %#x, STACK: %#x", arch, GetName(), nr_, args, ip_, sp_);