X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=8b2febe05c7e55a53f942d2a4e2a22a917acc2c0;hp=4a2dc65a6430bed4d1404a8b69ce4a76df937148;hb=794e2e5f064718252b249e17914c9b2b089d8d0c;hpb=ea6bf30f3684cf71633cb9f2c70ea0bc22b664c4 diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index 4a2dc65a6..8b2febe05 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -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) {