X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=6bd3f80ec3f8f3a77941d30c67936b98c05efed3;hp=469fffa980f33b6c527d94ac47e6fb51a3ce6f42;hb=294851b040ddfb224f906015e87d6cfe41952808;hpb=4fb43b68c1822cc7619907070489d3d678c41e7a diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 469fffa98..6bd3f80ec 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2047,14 +2047,14 @@ int lttng_calibrate(struct lttng_handle *handle, void lttng_channel_set_default_attr(struct lttng_domain *domain, struct lttng_channel_attr *attr) { - struct lttng_channel_extended *extended = - (struct lttng_channel_extended *) attr->extended.ptr; + struct lttng_channel_extended *extended; /* Safety check */ if (attr == NULL || domain == NULL) { return; } + extended = (struct lttng_channel_extended *) attr->extended.ptr; memset(attr, 0, sizeof(struct lttng_channel_attr)); /* Same for all domains. */