push username, homedir and tmpdir in lua too.
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index adb387d..e5dc968 100644 (file)
--- a/main.c
+++ b/main.c
@@ -724,7 +724,7 @@ int main (int argc, char **argv)
 
       /* is the following if still needed? */
 
-      fout = m_tempfile(buf, sizeof(buf), NONULL(Tempdir), NULL);
+      fout = m_tempfile(buf, sizeof(buf), NONULL(MCore.tmpdir), NULL);
       tempfile = m_strdup(buf);
 
       if (tempfile) {
@@ -851,6 +851,6 @@ int main (int argc, char **argv)
     mutt_endwin (Errorbuf);
   }
 
-  mlua_shutdown();
+  luaM_shutdown();
   exit (0);
 }