util.multitable: No globals today, thank you. Fixes missing table entries and a potential traceback

Mon, 04 May 2009 19:06:31 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 04 May 2009 19:06:31 +0100
changeset 1104
e9c1650054c4
parent 1102
c81df501fd38
child 1105
965a55db3732

util.multitable: No globals today, thank you. Fixes missing table entries and a potential traceback

util/multitable.lua file | annotate | diff | comparison | revisions
--- a/util/multitable.lua	Sun May 03 17:24:35 2009 +0100
+++ b/util/multitable.lua	Mon May 04 19:06:31 2009 +0100
@@ -56,7 +56,7 @@
 		return;
 	end
 	if k then
-		v = t[k];
+		local v = t[k];
 		if v then
 			r(v, n+1, _end, ...);
 			if not next(v) then
@@ -96,7 +96,7 @@
 		return;
 	end
 	if k then
-		v = t[k];
+		local v = t[k];
 		if v then
 			s(v, n+1, results, _end, ...);
 		end

mercurial