diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-04 19:06:31 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-04 19:06:31 +0100 |
commit | 1f45b979b1ce50e62c5e9057e686f7744ffd1695 (patch) | |
tree | 32f63c853a684116c6704fd04249f475f90a322d /util | |
parent | cb501db20ec8049ac1f95716b1ee5da94020085e (diff) | |
download | prosody-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.lua | 4 |
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 |