Token::getStrLength(): fixed errors from valgrind.
Correction for 13b2edd61e
commit.
This commit is contained in:
parent
0fb89f8afa
commit
fc7413e43d
|
@ -504,7 +504,8 @@ size_t Token::getStrLength(const Token *tok)
|
||||||
assert(tok != NULL);
|
assert(tok != NULL);
|
||||||
|
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
const char *str = tok->strValue().c_str();
|
const std::string strValue(tok->strValue());
|
||||||
|
const char *str = strValue.c_str();
|
||||||
|
|
||||||
while (*str)
|
while (*str)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue