Fixed bug (Dereferencing NULL)

This commit is contained in:
Daniel Marjamäki 2008-02-21 20:17:18 +00:00
parent 7bbdb7a3ba
commit e9682bbb0e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ TOKEN *findfunction(TOKEN *tok)
{
for (TOKEN *tok2 = tok->next; tok2; tok2 = tok2->next)
{
if (tok2->str[0] == ')')
if (tok2->str[0] == ')' && tok2->next)
{
if (tok2->next->str[0] == '{')
return tok;