summaryrefslogtreecommitdiffstats
path: root/syslog-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-model.lua')
-rw-r--r--syslog-model.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/syslog-model.lua b/syslog-model.lua
index 2e7cae2..a2a6eb2 100644
--- a/syslog-model.lua
+++ b/syslog-model.lua
@@ -64,6 +64,9 @@ function getconfig()
errors["KLOGD_OPTS"] = {}
if (fs.is_file(configfile)) then
config = getopts.getoptsfromfile(configfile) or config
+ if (type(config["SYSLOGD_OPTS"]) == "string") then
+ config["SYSLOGD_OPTS"] = {}
+ end
else
errors["configfile"] = "Config file '".. configfile .. "' is missing!"
end