summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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