mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
small "bugs" detected by Purify: cannot read "next" after 0.
This commit is contained in:
parent
f83bc86e51
commit
cae1eff901
1 changed files with 6 additions and 4 deletions
10
lex.c
10
lex.c
|
|
@ -1,4 +1,4 @@
|
|||
char *rcs_lex = "$Id: lex.c,v 2.43 1997/03/18 15:30:50 roberto Exp roberto $";
|
||||
char *rcs_lex = "$Id: lex.c,v 2.44 1997/03/31 14:17:09 roberto Exp roberto $";
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
|
|
@ -337,11 +337,13 @@ int luaY_lex (void)
|
|||
return NUMBER;
|
||||
}
|
||||
|
||||
default: /* also end of program (0) */
|
||||
{
|
||||
case 0:
|
||||
save(0);
|
||||
return 0;
|
||||
|
||||
default:
|
||||
save_and_next();
|
||||
return yytext[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue