Fixed compiler warning (#4136)

This commit is contained in:
PKEuS 2012-09-10 17:43:19 +02:00
parent ce9f6bdb56
commit 88f9e9991d
1 changed files with 1 additions and 1 deletions

View File

@ -5997,7 +5997,7 @@ bool Tokenizer::simplifyKnownVariables()
else if (Token::Match(tok2, "strcpy|sprintf ( %var% , %str% ) ;")) { else if (Token::Match(tok2, "strcpy|sprintf ( %var% , %str% ) ;")) {
const unsigned int varid(tok2->tokAt(2)->varId()); const unsigned int varid(tok2->tokAt(2)->varId());
std::string::size_type n = -1; std::string::size_type n = std::string::npos;
if (varid == 0) if (varid == 0)
continue; continue;
const std::string structname; const std::string structname;