Clean-up: Remove redundant variable initialization
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 2582e886d1e1a5f5352a6f91b8bd82b2ea914c7b..a1fbe5128f4983fab1e32bb8b9cf4d7576a3a570 100644 (file)
@@ -73,6 +73,7 @@
 #include "save.h"
 #include "load-session-thread.h"
 #include "syscall.h"
+#include "agent.h"
 
 #define CONSUMERD_FILE "lttng-consumerd"
 
@@ -305,6 +306,9 @@ const char * const config_section_name = "sessiond";
 /* Load session thread information to operate. */
 struct load_session_thread_data *load_info;
 
+/* Global hash tables */
+struct lttng_ht *agent_apps_ht_by_sock = NULL;
+
 /*
  * Whether sessiond is ready for commands/health check requests.
  * NR_LTTNG_SESSIOND_READY must match the number of calls to
@@ -5298,9 +5302,6 @@ int main(int argc, char **argv)
        void *status;
        const char *home_path, *env_app_timeout;
 
-       /* Initialize agent apps ht global variable */
-       agent_apps_ht_by_sock = NULL;
-
        init_kernel_workarounds();
 
        rcu_register_thread();
This page took 0.022891 seconds and 4 git commands to generate.