libs/uci: Cursor.delete_all: fix logical condition

This commit is contained in:
Steven Barth 2008-09-14 19:00:52 +00:00
parent 00026ef79d
commit 56ccdb78fa

View file

@ -77,7 +77,7 @@ function Cursor.delete_all(self, config, stype, comparator)
local tbl = comparator local tbl = comparator
comparator = function(section) comparator = function(section)
for k, v in pairs(tbl) do for k, v in pairs(tbl) do
if not section[k] == v then if section[k] ~= v then
return false return false
end end
end end