Skip to content

Commit

Permalink
[XrdSys] E2T: don't return local var memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Oct 30, 2019
1 parent 9135e2b commit b23edfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdSys/XrdSysE2T.cc
Expand Up @@ -96,7 +96,7 @@ const char *XrdSysE2T(int errcode)
// registered and if not, register it.
//
e2sMutex.Lock();
std::string eTxt(e2sMap[errcode]);
std::string &eTxt = e2sMap[errcode];
if (!eTxt.size())
{snprintf(eBuff, sizeof(eBuff), "unknown error %d", errcode);
eTxt = std::string(eBuff);
Expand Down

0 comments on commit b23edfb

Please sign in to comment.