aboutsummaryrefslogtreecommitdiffstats
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
commitf74284d013a5ffc1b9c5508d4fd0d5b292da29a3 (patch)
tree11774f4f8ab0e89f7de4f49d59eb5526d10ec295
parentd7f5ff243ecc816cad86b5e49ec4ad7c2ceaf83d (diff)
downloadprosody-f74284d013a5ffc1b9c5508d4fd0d5b292da29a3.tar.gz
prosody-f74284d013a5ffc1b9c5508d4fd0d5b292da29a3.zip
util.iterators: Small fix for variable scoping issue
-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