Fix redbean hook calls (fixes #224)

This commit is contained in:
Paul Kulchenko 2021-08-05 19:54:21 -07:00
parent 533f3d1ef1
commit 7b08aa4df3

View file

@ -1139,7 +1139,7 @@ static inline bool IsHookDefined(const char *s) {
static void CallSimpleHook(const char *s) {
lua_getglobal(L, s);
if (lua_pcall(L, 1, 0, 0) != LUA_OK) {
if (lua_pcall(L, 0, 0, 0) != LUA_OK) {
WARNF("%s: %s", s, lua_tostring(L, -1));
lua_pop(L, 1);
}