mod_storage_sql2: Rename variable to avoid name clash
authorMatthew Wild <mwild1@gmail.com>
Tue, 7 Jul 2015 16:39:56 +0000 (17:39 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 7 Jul 2015 16:39:56 +0000 (17:39 +0100)
plugins/mod_storage_sql2.lua

index 10a16743adbf50e387026d3599c7c1561889121a..bba27748287df4d3c7270e349b698a3fe28eefc3 100644 (file)
@@ -13,8 +13,8 @@ local function is_stanza(x) return getmetatable(x) == stanza_mt; end
 local noop = function() end
 local unpack = unpack
 local function iterator(result)
-       return function(result)
-               local row = result();
+       return function(result_)
+               local row = result_();
                if row ~= nil then
                        return unpack(row);
                end