X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=a4c20092286568dea369b30d8dd5eeb5516ba89b;hb=dc5141b9bf8323b45582c255fd3afd541fa63e14;hp=f3ef93d3fd5a52bf1d8970d5d068a44cb8120541;hpb=084cb5fec17c87a391c7ee7596caf5adfd7d3766;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index f3ef93d3f..a4c200922 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -109,6 +109,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;