commit | 5cc046e71eee6e18d8765f9d5f1c9ded167b88a6 | [log] [tgz] |
---|---|---|
author | Nick Desaulniers <ndesaulniers@google.com> | Mon Oct 07 20:37:31 2019 -0700 |
committer | Nick Desaulniers <ndesaulniers@google.com> | Mon Oct 07 20:37:31 2019 -0700 |
tree | 0f6f4515164d28ced8f9cbbb9572eb9898c7c064 | |
parent | 9ada1719baf97231621e1af762181d5bd5c13e5b [diff] |
[dumpstate] fix -Wreturn-stack-address ZippedBugreportGenerationTest#getZipFilePath() creates a temporary std::string, then returns a pointer to the C str within the stack temporary. Fix by returning a std::string and calling .c_str() at the call sites of getZipFilePath(). Bug: 139945549 Test: mm Change-Id: Ie2fc423f74e8ed2cf3f427c4afc3c340ff6c57cc Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>