Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.c
index c78e0dcd9352d1884b9406cd035aa8f35b51180a..83f092593e84f816d87821217b2aeec8d2712876 100644 (file)
@@ -20,6 +20,8 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <unistd.h>
 #include <sys/types.h>
 #include <stdint.h>
@@ -272,6 +274,7 @@ retry:
                goto error;
        }
 
+       memset(&msg, 0, sizeof(msg));
        msg.cmd = HEALTH_CMD_CHECK;
 
        ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
This page took 0.024287 seconds and 4 git commands to generate.