1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

removed usage of deprecated table.getn

This commit is contained in:
batrick
2011-05-11 14:41:06 +00:00
parent 186cb2d6a3
commit dc909f7d77
5 changed files with 5 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ local function process_instance( instance )
for _, message in ipairs( instance.ms_sql_empty ) do
table.insert( instanceOutput, message )
end
if ( nmap.verbosity() > 1 and table.getn( instance.ms_sql_empty ) == 0 ) then
if ( nmap.verbosity() > 1 and #instance.ms_sql_empty == 0 ) then
table.insert( instanceOutput, "'sa' account password is not blank." )
end
end