aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 5a040ac6..b6740b17 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1037,7 +1037,7 @@ LUALIB_API lua_State *luaL_newstate (void) {
1037 lua_atpanic(L, &panic); 1037 lua_atpanic(L, &panic);
1038 warnstate = (int *)lua_newuserdatauv(L, sizeof(int), 0); 1038 warnstate = (int *)lua_newuserdatauv(L, sizeof(int), 0);
1039 luaL_ref(L, LUA_REGISTRYINDEX); /* make sure it won't be collected */ 1039 luaL_ref(L, LUA_REGISTRYINDEX); /* make sure it won't be collected */
1040 *warnstate = 1; /* next message starts a new warning */ 1040 *warnstate = 0; /* default is warnings off */
1041 lua_setwarnf(L, warnf, warnstate); 1041 lua_setwarnf(L, warnf, warnstate);
1042 } 1042 }
1043 return L; 1043 return L;