Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 28ed06cbdaa50b5494c698b296e1bc576cdcfd6c..8574c1f050b88f387e78e8b06ac80d6c97df5be6 100644 (file)
@@ -16,7 +16,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #define __USE_LINUX_IOCTL_DEFS
 #include <sys/ioctl.h>
@@ -112,6 +111,7 @@ int kernctl_create_channel(int fd, struct lttng_channel_attr *chops)
 {
        struct lttng_kernel_channel channel;
 
+       memset(&channel, 0, sizeof(channel));
        if (lttng_kernel_use_old_abi) {
                struct lttng_kernel_old_channel old_channel;
 
This page took 0.025603 seconds and 5 git commands to generate.