bug fixed: null-pointer dereference.
This commit is contained in:
parent
a4c5892c11
commit
4dd4bcef57
@ -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…
x
Reference in New Issue
Block a user