Variable usage: Fixed a segmentation fault

This commit is contained in:
Daniel Marjamäki 2009-01-04 16:30:25 +00:00
parent 53cd729ccc
commit f8c44507e6
1 changed files with 3 additions and 0 deletions

View File

@ -816,6 +816,9 @@ void CheckOther::functionVariableUsage()
{
// Parse all executing scopes..
const Token *tok1 = _tokenizer->tokens();
if (!tok1)
return;
while ((tok1 = Token::findmatch( tok1->next(), ") const| {" )) != NULL)
{
// Varname, usage {1=declare, 2=read, 4=write}