aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 9ab8ae5c..5b800011 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.3 1997/10/13 22:10:45 roberto Exp roberto $ 2** $Id: llex.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $
3** Lexical Analizer 3** Lexical Analizer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -110,7 +110,7 @@ static void skipspace (void)
110 110
111static int checkcond (char *buff) 111static int checkcond (char *buff)
112{ 112{
113 static char *opts[] = {"nil", "1"}; 113 static char *opts[] = {"nil", "1", NULL};
114 int i = luaO_findstring(buff, opts); 114 int i = luaO_findstring(buff, opts);
115 if (i >= 0) return i; 115 if (i >= 0) return i;
116 else if (isalpha((unsigned char)buff[0]) || buff[0] == '_') 116 else if (isalpha((unsigned char)buff[0]) || buff[0] == '_')