util/iterators.lua
changeset 4441 a01b7207cb37
parent 4386 ce769240f8ec
child 4545 c9b91ddc9c11
--- 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