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); }