diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
111 | static int checkcond (char *buff) | 111 | static 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] == '_') |