bug fixed: null-pointer dereference.
authorbal <none@none>
Tue, 13 Aug 1985 14:03:23 +0000 (14:03 +0000)
committerbal <none@none>
Tue, 13 Aug 1985 14:03:23 +0000 (14:03 +0000)
lang/basic/src.old/basic.lex

index 69b9568..526b37c 100644 (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*/