]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: Deal with configuration before anything else
authorOlliver Schinagl <oliver@schinagl.nl>
Sat, 10 Jun 2023 13:26:08 +0000 (15:26 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 16 Jun 2023 11:11:41 +0000 (13:11 +0200)
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 <oliver@schinagl.nl>
src/config.c

index 8fd34b49a050d843c4a99fc0d24f382bde2f0d7d..8cd806bf48c340badd64e79633b7a38a8e7be44b 100644 (file)
@@ -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);