diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-01-19 15:50:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-01-19 15:50:32 +0000 |
commit | 0b1e6fe7a719abfda49ca17413c6a567c90635a2 (patch) | |
tree | ccf44ef3b4abbc11f1d3c818d33c86cd769e7904 /util/startup.lua | |
parent | a443414b2b1582836126d7c3b09957cdd1cd692e (diff) | |
download | prosody-0b1e6fe7a719abfda49ca17413c6a567c90635a2.tar.gz prosody-0b1e6fe7a719abfda49ca17413c6a567c90635a2.zip |
util.startup: Ensure prosody.opts exists even when no options provided
Diffstat (limited to 'util/startup.lua')
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 35be3162..24ed6026 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -17,6 +17,7 @@ local value_params = { config = true }; function startup.parse_args() local parsed_opts = {}; + prosody.opts = parsed_opts; if #arg == 0 then return; @@ -64,7 +65,6 @@ function startup.parse_args() end parsed_opts[param_k] = param_v; end - prosody.opts = parsed_opts; end function startup.read_config() |