From b7d137721aa44c4155a0ea6bc6944f36db66b39b Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Tue, 14 Jul 2020 01:41:41 -0700 Subject: [PATCH] Do not keep a reference to a temporary PiperOrigin-RevId: 321117444 Change-Id: If6951058fcd32fe638f9241bef79181d6785e9cf --- sandboxed_api/sandbox2/syscall.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_);