From 7603760017702ea02deca338fc4efc51f44929f3 Mon Sep 17 00:00:00 2001 From: John Graham-Cumming Date: Thu, 2 Jan 2014 07:46:33 -0800 Subject: Fix use of table.new(); parameters are not optional. The LuaJIT 2.1 table.new() function has two parameters: narr and nrec. It is not possible to omit either. The code was assuming that this was possible. --- lib/resty/cookie.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/resty') diff --git a/lib/resty/cookie.lua b/lib/resty/cookie.lua index 96c43fc..ce4b7f4 100644 --- a/lib/resty/cookie.lua +++ b/lib/resty/cookie.lua @@ -47,7 +47,7 @@ local function get_cookie_table(text_cookie) end end - local cookie_table = new_tab(n + 1) + local cookie_table = new_tab(0, n + 1) local state = EXPECT_SP local i = 1 -- cgit v1.2.3-70-g09d2