X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.c;h=01d430d0d4c49fc390b4c6ffa77ddb92ea2ed575;hp=534c01c023307ea2eb6bd6272b05fa2e601d2ce5;hb=73d8fe3ef7055233c91caae38fce49405435b064;hpb=e7b0d526e58a78291e456e42b5a911c5036e496c diff --git a/src/lib/lttng-ctl/lttng-ctl-health.c b/src/lib/lttng-ctl/lttng-ctl-health.c index 534c01c02..01d430d0d 100644 --- a/src/lib/lttng-ctl/lttng-ctl-health.c +++ b/src/lib/lttng-ctl/lttng-ctl-health.c @@ -20,11 +20,14 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include #include #include +#include #include #include @@ -260,7 +263,7 @@ retry: if (ret) { goto error; } - /* Connect to the sesssion daemon */ + /* Connect to component */ sock = lttcomm_connect_unix_sock(health->health_sock_path); if (sock < 0) { if (tracing_group) { @@ -272,6 +275,7 @@ retry: goto error; } + memset(&msg, 0, sizeof(msg)); msg.cmd = HEALTH_CMD_CHECK; ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));