From f4b092259c49ec9d0e0c1ea3f85cec142c0395a6 Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 4 Jul 2024 02:41:11 +0000 Subject: [PATCH] Correct the test for an empty non-list table. See #2784 --- nselib/mssql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/mssql.lua b/nselib/mssql.lua index 7669bb957..b2662f10e 100644 --- a/nselib/mssql.lua +++ b/nselib/mssql.lua @@ -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