Fix: perf counters: uninitialized field
[lttng-modules.git] / src / lttng-context-perf-counters.c
index 75be9bf96491cc7716958bff42225cfef20f8141..e637bb75ca94c3ea2c991871ba2ce40617894f03 100644 (file)
@@ -223,7 +223,7 @@ int lttng_add_perf_counter_to_ctx(uint32_t type,
                                  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;
This page took 0.022889 seconds and 4 git commands to generate.