X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=a4c20092286568dea369b30d8dd5eeb5516ba89b;hb=9123d0a5eee5182c1468c2a5930d1d29104b1f58;hp=f3ef93d3fd5a52bf1d8970d5d068a44cb8120541;hpb=d32269275afbd60391c0b893d82155285ca64253;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;