1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00

Fix a bug that was causing the read_from_file() to not return the correct file lines.

This commit is contained in:
djalal
2010-12-14 10:20:23 +00:00
parent e8a9ff65e8
commit afe98e8d80

View File

@@ -245,8 +245,8 @@ function read_from_file( file )
return false, ( "Error in datafiles.read_from_file: Cannot open %s for reading: %s" ):format( filepath, err )
end
local line, ret = nil, {}
for l in f:lines() do
local ret = {}
for line in f:lines() do
ret[#ret+1] = line
end