Skip to content

Commit

Permalink
fix lua_init test
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed May 3, 2018
1 parent 3ce33cc commit 44489ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mutt_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ static void luaopen_mutt(lua_State *l)

static bool lua_init(lua_State **l)
{
if (l && *l)
if (!l)
return false;
if (*l)
return true;

mutt_debug(2, " * lua_init()\n");
Expand Down

0 comments on commit 44489ab

Please sign in to comment.