aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-01-22 22:55:49 +0000
committerMatthew Wild <mwild1@gmail.com>2012-01-22 22:55:49 +0000
commit4d7ce5ef98953b67c80cc7f2fc347f01ad9cdd4e (patch)
treeacc1b9c5576f0ba21b56fd5b133a4a173798d042 /util/iterators.lua
parentb803655fc3922d51ccfb44eebe8540e3ba562b2b (diff)
parent075f0cbd7c732c108e03ec8596e9934db7b8b06a (diff)
downloadprosody-4d7ce5ef98953b67c80cc7f2fc347f01ad9cdd4e.tar.gz
prosody-4d7ce5ef98953b67c80cc7f2fc347f01ad9cdd4e.zip
Merge with trunk
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 2a87e97a..aa0b172b 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -140,7 +140,7 @@ end
-- Treat the return of an iterator as key,value pairs,
-- and build a table
function it2table(f, s, var)
- local t, var = {};
+ local t, var2 = {};
while true do
var, var2 = f(s, var);
if var == nil then break; end