Fixed bug (Dereferencing NULL)
This commit is contained in:
parent
7bbdb7a3ba
commit
e9682bbb0e
|
@ -30,7 +30,7 @@ TOKEN *findfunction(TOKEN *tok)
|
||||||
{
|
{
|
||||||
for (TOKEN *tok2 = tok->next; tok2; tok2 = tok2->next)
|
for (TOKEN *tok2 = tok->next; tok2; tok2 = tok2->next)
|
||||||
{
|
{
|
||||||
if (tok2->str[0] == ')')
|
if (tok2->str[0] == ')' && tok2->next)
|
||||||
{
|
{
|
||||||
if (tok2->next->str[0] == '{')
|
if (tok2->next->str[0] == '{')
|
||||||
return tok;
|
return tok;
|
||||||
|
|
Loading…
Reference in New Issue