mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix a bug that was causing the read_from_file() to not return the correct file lines.
This commit is contained in:
parent
e8a9ff65e8
commit
afe98e8d80
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue