aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-02-04 15:13:13 +0000
committerMatthew Wild <mwild1@gmail.com>2022-02-04 15:13:13 +0000
commitf728cb77673d0bc95bc1646fff71ae62bbdb70cc (patch)
tree15c5ff7052b6d9d3cccc321037c4fa85baba25a2
parent018c618a3f43a893d178c773176c2ef3f6aefde6 (diff)
downloadprosody-f728cb77673d0bc95bc1646fff71ae62bbdb70cc.tar.gz
prosody-f728cb77673d0bc95bc1646fff71ae62bbdb70cc.zip
Revert util.debug change accidentally committed in e157e5c79daa
-rw-r--r--util/debug.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/debug.lua b/util/debug.lua
index 20d49720..4c924d40 100644
--- a/util/debug.lua
+++ b/util/debug.lua
@@ -31,7 +31,7 @@ local function get_locals_table(thread, level)
for local_num = 1, math.huge do
local name, value;
if thread then
- name, value = debug.getlocal(thread, level-1, local_num);
+ name, value = debug.getlocal(thread, level, local_num);
else
name, value = debug.getlocal(level+1, local_num);
end