aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-17 08:42:21 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-17 08:42:21 +0100
commitf42128298646404ddb77cc04ebf11dc68281e98b (patch)
tree11774f4f8ab0e89f7de4f49d59eb5526d10ec295 /util/iterators.lua
parent04ec0856a81726f5e0f67dc3c8e34c5f5027e06e (diff)
downloadprosody-f42128298646404ddb77cc04ebf11dc68281e98b.tar.gz
prosody-f42128298646404ddb77cc04ebf11dc68281e98b.zip
util.iterators: Small fix for variable scoping issue
Diffstat (limited to 'util/iterators.lua')
-rw-r--r--util/iterators.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index bcda48b4..4b429163 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -75,7 +75,7 @@ function it.count(f, s, var)
local x = 0;
while true do
- local var = f(s, var);
+ var = f(s, var);
if var == nil then break; end
x = x + 1;
end