relayd: clean-up: reduce the number of exit paths in main()
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 4a2dc65a6430bed4d1404a8b69ce4a76df937148..8b2febe05c7e55a53f942d2a4e2a22a917acc2c0 100644 (file)
@@ -55,7 +55,7 @@
 static
 char health_unix_sock_path[PATH_MAX];
 
-int health_quit_pipe[2];
+int health_quit_pipe[2] = { -1, -1 };
 
 /*
  * Check if the thread quit pipe was triggered.
@@ -155,7 +155,8 @@ static
 int setup_health_path(void)
 {
        int is_root, ret = 0;
-       char *home_path = NULL, *rundir = NULL, *relayd_path = NULL;
+       const char *home_path = NULL;
+       char *rundir = NULL, *relayd_path = NULL;
 
        ret = parse_health_env();
        if (ret) {
This page took 0.024218 seconds and 4 git commands to generate.