mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
libexpr: Use use-after-move in SampleStack::saveProfile()
This commit is contained in:
parent
452ec09fe0
commit
be1ade7373
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ void SampleStack::saveProfile()
|
|||
std::visit([&](auto && info) { info.symbolize(state, os, posCache); }, pos);
|
||||
}
|
||||
os << " " << count;
|
||||
writeLine(profileFd.get(), std::move(os).str());
|
||||
writeLine(profileFd.get(), os.str());
|
||||
/* Clear ostringstream. */
|
||||
os.str("");
|
||||
os.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue