Software /
code /
prosody
Diff
util/iterators.lua @ 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 |
parent | 7260:a9ef93bc81d9 |
child | 7351:11434c46b7b7 |
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