diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2022-05-10 12:30:59 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2022-05-10 12:30:59 -0400 |
commit | 5bed414ba9418ba8599d3b333eb30e63f62124ae (patch) | |
tree | 4123a176422debac4dde6f3bf5ec4df2555f07e9 /indra/newview/lltexturefetch.cpp | |
parent | 4dddb17dfc0dc2c0bdd21263574707a91f2b00a9 (diff) |
SL-17219: Fix bug: dangling pointer to destroyed std::string.
Diffstat (limited to 'indra/newview/lltexturefetch.cpp')
-rw-r--r-- | indra/newview/lltexturefetch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index 8ad28074de..f30e640f80 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -2540,11 +2540,11 @@ void LLTextureFetchWorker::recordTextureDone(bool is_http, F64 byte_count) ////////////////////////////////////////////////////////////////////////////// // public -const char* LLTextureFetch::getStateString(S32 state) +std::string LLTextureFetch::getStateString(S32 state) { if (state < 0 || state > sizeof(e_state_name) / sizeof(char*)) { - return llformat("%d", state).c_str(); + return llformat("%d", state); } return e_state_name[state]; |