bug fixed: null-pointer dereference.

This commit is contained in:
bal 1985-08-13 14:03:23 +00:00
parent cd5fb7ea8c
commit 57a2371a16

View file

@ -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*/