]> granicus.if.org Git - neomutt/commitdiff
fix lua_init test
authorRichard Russon <rich@flatcap.org>
Tue, 1 May 2018 21:54:22 +0000 (22:54 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 3 May 2018 12:47:16 +0000 (13:47 +0100)
mutt_lua.c

index e21cb6b6612ff31514d134b3d4a10c031af693b3..79799b2e583912595b1a891c11b6e507a5e39752 100644 (file)
@@ -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");