revert a nonnull instance that deviated from the stated rules

This commit is contained in:
nhmall
2023-12-15 00:52:15 -05:00
parent 6467b983eb
commit b368d4fbe9
2 changed files with 3 additions and 5 deletions

View File

@@ -2092,10 +2092,8 @@ RESTORE_WARNING_CONDEXPR_IS_CONSTANT
void
nhl_done(lua_State *L)
{
lua_State *L2 = L; /* allow arg to be declared nonnull */
if (L2)
lua_close(L2);
if (L)
lua_close(L);
iflags.in_lua = FALSE;
}