Reset the stack before calling a lua function
commitf075318897e7880116ca6c02c9a4163075c9233b
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Fri, 22 Aug 2008 03:42:57 +0000 (21 23:42 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Fri, 22 Aug 2008 03:42:57 +0000 (21 23:42 -0400)
treeb58a690838361aaee1a226b5ce45b5e409217f50
parent0e4863df561fe6c99ce7d2f69a29b2809a1a00b9
Reset the stack before calling a lua function

It's probably a better idea to reset the stack after every lua function
call, instead of right before. But this seems to fix a semi-random
crash. We can revisit for a more appropriate fix later.
src/lua.c