aboutsummaryrefslogtreecommitdiffstats
path: root/main/aaudit/aaudit-server.lua
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-08-20 13:05:49 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-08-20 13:06:08 +0300
commitded74a6c8d3e2f0d055c00899e308bce660226d0 (patch)
tree5f1ef89ab2393d71c56c19dd88781b81340903aa /main/aaudit/aaudit-server.lua
parent90ceaedaaba34ced17b9796ab66b9e17058bc4e9 (diff)
downloadaports-ded74a6c8d3e2f0d055c00899e308bce660226d0.tar.bz2
aports-ded74a6c8d3e2f0d055c00899e308bce660226d0.tar.xz
main/aaudit: minor server side fix
Diffstat (limited to 'main/aaudit/aaudit-server.lua')
-rw-r--r--main/aaudit/aaudit-server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/aaudit/aaudit-server.lua b/main/aaudit/aaudit-server.lua
index f0f73ab6f1..b039e2c775 100644
--- a/main/aaudit/aaudit-server.lua
+++ b/main/aaudit/aaudit-server.lua
@@ -11,7 +11,7 @@ local HOME = os.getenv("HOME")
M.serverconfig = aac.readconfig(("%s/aaudit-server.json"):format(HOME)) or {}
local function merge_bool(a, b) return a or b end
-local function merge_array(a, b) if b then for i=1,#b do a[#a+1] = b[i] end end return a end
+local function merge_array(a, b) a = a or {} if b then for i=1,#b do a[#a+1] = b[i] end end return a end
local function match_file(fn, match_list)
if not match_list then return false end