util.iterators: it2table: Fix variable name
authorMatthew Wild <mwild1@gmail.com>
Wed, 07 Dec 2011 05:17:39 +0000
changeset 4441 a01b7207cb37
parent 4440 c60ed6732b34
child 4442 bc0a68cae236
util.iterators: it2table: Fix variable name
util/iterators.lua
--- 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