Reported by Coverity:
** CID
1452572: Uninitialized variables (UNINIT)
>>> Using uninitialized value "ctx_field". Field "ctx_field.get_size_arg" is uninitialized when calling "lttng_kernel_context_append".
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I064260c6fe78af24768bb141fde2864d2abbe3a5
const char *name,
struct lttng_kernel_ctx **ctx)
{
- struct lttng_kernel_ctx_field ctx_field;
+ struct lttng_kernel_ctx_field ctx_field = { 0 };
struct lttng_kernel_event_field *event_field;
struct lttng_perf_counter_field *perf_field;
struct perf_event **events;