aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-01-19 15:50:32 +0000
committerMatthew Wild <mwild1@gmail.com>2020-01-19 15:50:32 +0000
commit4bbc2c71208f7a53bd0d7ae02f17371b47657869 (patch)
treeccf44ef3b4abbc11f1d3c818d33c86cd769e7904 /util
parent2c379eb7110b83716e6c6267be135fcdc72bdbd7 (diff)
downloadprosody-4bbc2c71208f7a53bd0d7ae02f17371b47657869.tar.gz
prosody-4bbc2c71208f7a53bd0d7ae02f17371b47657869.zip
util.startup: Ensure prosody.opts exists even when no options provided
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua2
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()