Software /
code /
prosody
Changeset
7309:471189342890
util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 21 Mar 2016 21:04:14 +0000 (2016-03-21) |
parents | 7306:98c4c3a2b536 |
children | 7310:66873c5e2061 7311:e9526dd3e8fc |
files | util/iterators.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/iterators.lua Mon Mar 21 09:50:52 2016 +0100 +++ b/util/iterators.lua Mon Mar 21 21:04:14 2016 +0000 @@ -135,8 +135,8 @@ 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