mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 23:19:03 +00:00
Fix a bug that was causing the read_from_file() to not return the correct file lines.
This commit is contained in:
@@ -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 )
|
return false, ( "Error in datafiles.read_from_file: Cannot open %s for reading: %s" ):format( filepath, err )
|
||||||
end
|
end
|
||||||
|
|
||||||
local line, ret = nil, {}
|
local ret = {}
|
||||||
for l in f:lines() do
|
for line in f:lines() do
|
||||||
ret[#ret+1] = line
|
ret[#ret+1] = line
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user