Fix ticket #186 (runtime error when checking code that has a namespace)

http://apps.sourceforge.net/trac/cppcheck/ticket/186
This commit is contained in:
Reijo Tomperi 2009-03-17 20:16:15 +02:00
parent 9fe8ae452a
commit 2a3535c04f
1 changed files with 1 additions and 1 deletions

View File

@ -700,9 +700,9 @@ void Tokenizer::simplifyNamespaces()
tok->deleteNext();
start->deleteNext();
start->deleteNext();
token = start->next();
if (start->previous())
{
token = start->next();
start = start->previous();
start->deleteNext();
}