Add a sanity check to nhl_init()
This commit is contained in:
@@ -2083,6 +2083,7 @@ nhl_init(nhl_sandbox_info *sbi)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
lua_State *L = nhlL_newstate(sbi, "nhl_init");
|
lua_State *L = nhlL_newstate(sbi, "nhl_init");
|
||||||
|
if(!L) return 0;
|
||||||
|
|
||||||
iflags.in_lua = TRUE;
|
iflags.in_lua = TRUE;
|
||||||
/* Temporary for development XXX */
|
/* Temporary for development XXX */
|
||||||
|
|||||||
Reference in New Issue
Block a user