Skip to content
Snippets Groups Projects
Commit 61501133 authored by Marian Klymov's avatar Marian Klymov Committed by Brad King
Browse files

SystemInformation: Avoid use of dangling pointers on Solaris

`ParseValueFromKStat` was constructing local `std::string` instances in
a loop and passing their `.c_str()` to `RunProcess` after destruction.
Preserve the strings in a vector to avoid dangling pointers.

While at it, simplify some logic by using standard algorithms.
parent 361e54e3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment