Token::getStrLength(): fixed errors from valgrind.

Correction for 13b2edd61e commit.
This commit is contained in:
Slava Semushin 2009-09-13 17:50:21 +07:00
parent 0fb89f8afa
commit fc7413e43d
1 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,8 @@ size_t Token::getStrLength(const Token *tok)
assert(tok != NULL);
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)
{