From 57a2371a1663b23738f1a111cf270fad43509b32 Mon Sep 17 00:00:00 2001 From: bal Date: Tue, 13 Aug 1985 14:03:23 +0000 Subject: [PATCH] bug fixed: null-pointer dereference. --- lang/basic/src.old/basic.lex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/basic/src.old/basic.lex b/lang/basic/src.old/basic.lex index 69b956869..526b37cf0 100644 --- a/lang/basic/src.old/basic.lex +++ b/lang/basic/src.old/basic.lex @@ -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*/ -- 2.34.1