From 04283a9a4ab81ed435f8ee0d36e271e6f51f8418 Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Sat, 10 Jun 2023 15:26:08 +0200 Subject: [PATCH] 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 --- src/config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.47.2