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 | f42128298646404ddb77cc04ebf11dc68281e98b (patch) | |
tree | 11774f4f8ab0e89f7de4f49d59eb5526d10ec295 /util/iterators.lua | |
parent | 04ec0856a81726f5e0f67dc3c8e34c5f5027e06e (diff) | |
download | prosody-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.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 |