commit | 7195678284b689a7433a122b149956dbd4ee24f1 | [log] [tgz] |
---|---|---|
author | Ravi Kiran Kasula <rkasul@codeaurora.org> | Wed Jan 15 18:09:43 2020 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Feb 04 06:38:17 2020 -0800 |
tree | 362550acf21b35cade23519aa73403af9b6bafbc | |
parent | f57663d9ae04e69aef2534728f92d7a0597655e4 [diff] |
Avoid returning a dangling pointer. Returning string.c_str() of a local variable results in returning a dangling pointer. The compiler detects and complains about this resulting in a build break. This change returns a string to avoid the issue. The change also updates the call sites Change-Id: Ie27b7afc9be7e48e1c9d75950ccff891ba9002f4