Skip to content

Commit f521e4a

Browse files
committed
nLen initialization fixed
1 parent 32a59c8 commit f521e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ local function encode_table(val, stack)
6767
-- Check whether to treat as a array or object
6868
local array = true
6969
local length = 0
70-
local nLen
70+
local nLen = 0
7171
for k,v in pairs(val) do
7272
if (type(k) ~= "number" or k<=0) and not (k == "n" and type(v) == "number") then
7373
array = nil

0 commit comments

Comments
 (0)