bug fixed: null-pointer dereference.
This commit is contained in:
parent
cd5fb7ea8c
commit
57a2371a16
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ lookup()
|
||||||
for(c=cptr; *c && isalnum(*c);c++)
|
for(c=cptr; *c && isalnum(*c);c++)
|
||||||
if( isupper(*c) )
|
if( isupper(*c) )
|
||||||
*c= tolower((*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)
|
if( strncmp(cptr,k->name,k->length)==0)
|
||||||
{
|
{
|
||||||
/* check functions first*/
|
/* check functions first*/
|
||||||
|
|
Loading…
Reference in a new issue