aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 26453412..e8dbe1be 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.169 2008/06/26 19:40:12 roberto Exp roberto $ 2** $Id: lua.c,v 1.170 2008/06/26 19:47:51 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -373,7 +373,7 @@ static int pmain (lua_State *L) {
373int main (int argc, char **argv) { 373int main (int argc, char **argv) {
374 int status; 374 int status;
375 struct Smain s; 375 struct Smain s;
376 lua_State *L = lua_open(); /* create state */ 376 lua_State *L = luaL_newstate(); /* create state */
377 if (L == NULL) { 377 if (L == NULL) {
378 l_message(argv[0], "cannot create state: not enough memory"); 378 l_message(argv[0], "cannot create state: not enough memory");
379 return EXIT_FAILURE; 379 return EXIT_FAILURE;