aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-12-07 05:17:39 +0000
committerMatthew Wild <mwild1@gmail.com>2011-12-07 05:17:39 +0000
commitab71edddf05e451599a138ee7ebd4cd97f69fa46 (patch)
treebac91f33bf02831f9c520087822519803ee8a18e /util
parent6c51171c432a9068270a580edd1ddd4753fde62c (diff)
downloadprosody-ab71edddf05e451599a138ee7ebd4cd97f69fa46.tar.gz
prosody-ab71edddf05e451599a138ee7ebd4cd97f69fa46.zip
util.iterators: it2table: Fix variable name
Diffstat (limited to 'util')
-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