fix leak of global values

This commit is contained in:
Pinya
2018-07-18 15:08:04 +03:00
parent c60324af12
commit 8b44916c87
9 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ end
local function strsplit(delim, s, n)
if n and n < 2 then return s end
beg = beg or 1
local beg = beg or 1
local i,j = string.find(s,delim,beg)
if not i then
return s, nil