diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-05-17 08:42:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-05-17 08:42:21 +0100 |
commit | f74284d013a5ffc1b9c5508d4fd0d5b292da29a3 (patch) | |
tree | 11774f4f8ab0e89f7de4f49d59eb5526d10ec295 /util | |
parent | d7f5ff243ecc816cad86b5e49ec4ad7c2ceaf83d (diff) | |
download | prosody-f74284d013a5ffc1b9c5508d4fd0d5b292da29a3.tar.gz prosody-f74284d013a5ffc1b9c5508d4fd0d5b292da29a3.zip |
util.iterators: Small fix for variable scoping issue
Diffstat (limited to 'util')
-rw-r--r-- | util/iterators.lua | 2 |
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 |