X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fenable_channels.c;h=22331cec2b2ead8d032ede422df7f581df4f7c38;hp=fa8513e72320c1f835af634fed3f14dbca5d18d8;hb=c1e4642cd27bd5b70c0eca1011d9e452bd24f018;hpb=cf0bcb51ea857687a353d2851e572dba6cc63cb0 diff --git a/src/bin/lttng/commands/enable_channels.c b/src/bin/lttng/commands/enable_channels.c index fa8513e72..22331cec2 100644 --- a/src/bin/lttng/commands/enable_channels.c +++ b/src/bin/lttng/commands/enable_channels.c @@ -51,6 +51,12 @@ static struct { static struct mi_writer *writer; +#ifdef LTTNG_EMBED_HELP +static const char help_msg[] = +#include +; +#endif + enum { OPT_HELP = 1, OPT_DISCARD, @@ -102,6 +108,8 @@ static void set_default_attr(struct lttng_domain *dom) { struct lttng_channel_attr default_attr; + memset(&default_attr, 0, sizeof(default_attr)); + /* Set attributes */ lttng_channel_set_default_attr(dom, &default_attr);