bug fixed: null-pointer dereference.
This commit is contained in:
parent
cd5fb7ea8c
commit
57a2371a16
|
@ -232,7 +232,7 @@ lookup()
|
|||
for(c=cptr; *c && isalnum(*c);c++)
|
||||
if( isupper(*c) )
|
||||
*c= tolower((*c));
|
||||
for(k= keywords+kex[*cptr-'a']; *(k->name)== *cptr;k++)
|
||||
for(k= keywords+kex[*cptr-'a']; k->name != 0 && *(k->name)== *cptr;k++)
|
||||
if( strncmp(cptr,k->name,k->length)==0)
|
||||
{
|
||||
/* check functions first*/
|
||||
|
|
Loading…
Reference in a new issue