]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
table_print: fix printing tables with key = false
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 10 Jul 2020 19:59:51 +0000 (21:59 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 2 Nov 2020 09:26:44 +0000 (10:26 +0100)
daemon/lua/sandbox.lua.in

index fbb2824359c50a730605dedbf006758fbca37d1c..ec33f2622b2d5d7f967f33cd7baeea8730c380b5 100644 (file)
@@ -525,7 +525,7 @@ function table_print (tt, indent, done)
                local i = 0
                return function()
                        i = i + 1
-                       if keys[i] then
+                       if keys[i] ~= nil then
                                return keys[i], unordered_tt[keys[i]]
                        end
                end