diff options
Diffstat (limited to 'syslog-model.lua')
-rw-r--r-- | syslog-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syslog-model.lua b/syslog-model.lua index 38920b3..ac6904f 100644 --- a/syslog-model.lua +++ b/syslog-model.lua @@ -180,7 +180,7 @@ end function getconfig() local config = {} if (fs.is_file(configfile)) then - local configcontent = format.opts_to_table(string.sub((format.parse_ini_file(fs.read_file(configfile), "", "SYSLOGD_OPTS") or ""),2,-2)) + local configcontent = format.opts_to_table(string.sub((format.parse_ini_file(fs.read_file(configfile) or "", "", "SYSLOGD_OPTS") or ""),2,-2)) config = makeconfig(configcontent) else config = makeconfig() |