From: Olliver Schinagl Date: Sat, 10 Jun 2023 13:26:08 +0000 (+0200) Subject: config: Deal with configuration before anything else X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04283a9a4ab81ed435f8ee0d36e271e6f51f8418;p=thirdparty%2Ftvheadend.git config: Deal with configuration before anything else We should really be setting up our configuration storage before anything else. Starting/registering other items before that seems a bit out-of-order. Signed-off-by: Olliver Schinagl --- diff --git a/src/config.c b/src/config.c index 8fd34b49a..8cd806bf4 100644 --- a/src/config.c +++ b/src/config.c @@ -1725,10 +1725,6 @@ config_boot config.local_ip = strdup(""); config.local_port = 0; - idclass_register(&config_class); - - satip_server_boot(); - /* Generate default */ if (!path) { const char *homedir = getenv("HOME"); @@ -1759,6 +1755,10 @@ config_boot return; } + idclass_register(&config_class); + + satip_server_boot(); + /* Configure settings routines */ hts_settings_init(path);