From f388ee4a822b3d8027ed7c28aa21e9406e4a11eb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Apr 2002 11:40:23 -0300 Subject: new way to handle errors --- lstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 714fac6a..9725bed5 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.88 2002/03/20 12:52:32 roberto Exp roberto $ +** $Id: lstate.c,v 1.89 2002/04/16 17:08:28 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -124,7 +124,7 @@ LUA_API lua_State *lua_open (void) { preinit_state(L); L->l_G = NULL; L->next = L->previous = L; - if (luaD_runprotected(L, f_luaopen, NULL) != 0) { + if (luaD_runprotected(L, f_luaopen, &luaO_nilobject, NULL) != 0) { /* memory allocation error: free partial state */ close_state(L); L = NULL; -- cgit v1.2.3-55-g6feb