diff --git a/nselib/stdnse.lua b/nselib/stdnse.lua index 0e6f8bc5c..2d60c3268 100644 --- a/nselib/stdnse.lua +++ b/nselib/stdnse.lua @@ -221,7 +221,7 @@ function strsplit(pattern, text) assert(pattern ~= "", "delimiter matches empty string!"); while true do - local first, last, match = text:find(pattern, pos); + local first, last = text:find(pattern, pos); if first then -- found? list[#list+1] = text:sub(pos, first-1); pos = last+1;