From 6f47094b8da2466bb641a23101ca954ea1540107 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Sun, 21 Jan 2024 12:44:05 -0500 Subject: [PATCH] Add a sanity check to nhl_init() --- src/nhlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nhlua.c b/src/nhlua.c index a07037a1a..6f40286db 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -2083,6 +2083,7 @@ nhl_init(nhl_sandbox_info *sbi) #endif lua_State *L = nhlL_newstate(sbi, "nhl_init"); + if(!L) return 0; iflags.in_lua = TRUE; /* Temporary for development XXX */