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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user