aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-04 19:06:31 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-04 19:06:31 +0100
commit1f45b979b1ce50e62c5e9057e686f7744ffd1695 (patch)
tree32f63c853a684116c6704fd04249f475f90a322d /util
parentcb501db20ec8049ac1f95716b1ee5da94020085e (diff)
downloadprosody-1f45b979b1ce50e62c5e9057e686f7744ffd1695.tar.gz
prosody-1f45b979b1ce50e62c5e9057e686f7744ffd1695.zip
util.multitable: No globals today, thank you. Fixes missing table entries and a potential traceback
Diffstat (limited to 'util')
-rw-r--r--util/multitable.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/multitable.lua b/util/multitable.lua
index c0bb2205..d1858d8f 100644
--- a/util/multitable.lua
+++ b/util/multitable.lua
@@ -56,7 +56,7 @@ local function r(t, n, _end, ...)
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 @@ local function s(t, n, results, _end, ...)
return;
end
if k then
- v = t[k];
+ local v = t[k];
if v then
s(v, n+1, results, _end, ...);
end