mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Correct the test for an empty non-list table. See #2784
This commit is contained in:
@@ -3356,7 +3356,7 @@ Helper =
|
||||
for _, instance in ipairs(instances) do
|
||||
output[instance:GetName()] = process_instance(instance)
|
||||
end
|
||||
if #output > 0 then
|
||||
if next(output) then
|
||||
return outlib.sorted_by_key(output)
|
||||
end
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user