From 7b08aa4df392fd00fdab81ff71185c18a392bdde Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Thu, 5 Aug 2021 19:54:21 -0700 Subject: [PATCH] Fix redbean hook calls (fixes #224) --- tool/net/redbean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 9b6697e20..a30611694 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -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); }