aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 17:40:42 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 17:40:42 +0100
commit29c6aed489216d03ecc070ee262d0943465441a7 (patch)
tree06643659f4147acd046dff70ca132eeb0177d0db
parenta2c0f6d6458193baa67e1df44a9c94fec357011b (diff)
downloadprosody-29c6aed489216d03ecc070ee262d0943465441a7.tar.gz
prosody-29c6aed489216d03ecc070ee262d0943465441a7.zip
util.multitable: Localize unpack() in Lua 5.2 compatible way
-rw-r--r--util/multitable.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/multitable.lua b/util/multitable.lua
index 7a2d2b2a..e4321d3d 100644
--- a/util/multitable.lua
+++ b/util/multitable.lua
@@ -8,7 +8,8 @@
local select = select;
local t_insert = table.insert;
-local unpack, pairs, next, type = unpack, pairs, next, type;
+local pairs, next, type = pairs, next, type;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local _ENV = nil;