Software /
code /
prosody
Diff
util/iterators.lua @ 4441:a01b7207cb37
util.iterators: it2table: Fix variable name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 07 Dec 2011 05:17:39 +0000 |
parent | 4386:ce769240f8ec |
child | 4545:c9b91ddc9c11 |
line wrap: on
line diff
--- a/util/iterators.lua Wed Dec 07 05:14:58 2011 +0000 +++ b/util/iterators.lua Wed Dec 07 05:17:39 2011 +0000 @@ -140,7 +140,7 @@ -- 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