Fix: zero memory passed to create channel kernel ioctl
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index d153a1cff7dafbbc3460f7aac1baae55042263fd..e71d25f4a88e60d1395999c9a50ad6c3fbe1e508 100644 (file)
@@ -108,6 +108,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.023771 seconds and 4 git commands to generate.