# HG changeset patch # User Matthew Wild # Date 1368776541 -3600 # Node ID 78dbece77ce81a500d2ee57738e5cd6a5bdf3439 # Parent 7bc2009fdd0c3fe93b2bdb9ff2ca8c0b102a1c1d util.iterators: Small fix for variable scoping issue diff -r 7bc2009fdd0c -r 78dbece77ce8 util/iterators.lua --- a/util/iterators.lua Fri May 17 08:31:03 2013 +0100 +++ b/util/iterators.lua Fri May 17 08:42:21 2013 +0100 @@ -75,7 +75,7 @@ local x = 0; while true do - local var = f(s, var); + var = f(s, var); if var == nil then break; end x = x + 1; end