diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-21 21:04:14 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-21 21:04:14 +0000 |
commit | 021411faa6e94efde75fa92a3ba3a993cdedf436 (patch) | |
tree | 05523c02516de21ca8072ea084c89f988af71daa /util | |
parent | 6a65e76fc615bd10c21776bd4c4455ab522d2f29 (diff) | |
download | prosody-021411faa6e94efde75fa92a3ba3a993cdedf436.tar.gz prosody-021411faa6e94efde75fa92a3ba3a993cdedf436.zip |
util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9
Diffstat (limited to 'util')
-rw-r--r-- | util/iterators.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/iterators.lua b/util/iterators.lua index d453a694..e553229e 100644 --- a/util/iterators.lua +++ b/util/iterators.lua @@ -135,8 +135,8 @@ function it.filter(filter, f, s, var) return function (_s, _var) local ret; repeat ret = pack(f(_s, _var)); - var = ret[1]; - until var == nil or filter(unpack(ret, 1, ret.n)); + _var = ret[1]; + until _var == nil or filter(unpack(ret, 1, ret.n)); return unpack(ret, 1, ret.n); end, s, var; end |