action_index will be used uninitialized if the user passes an action
that is not part of the trigger (an API use error).
CID
1452662 (#2 of 2): Uninitialized scalar variable (UNINIT)
14. uninit_use: Using uninitialized value action_index.is_set.
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9afc6730b5462f4bf55e0dba3454efb5b4ca22c9
const struct lttng_action *action)
{
struct lttng_error_query_action *query = NULL;
- typeof(query->action_index) action_index;
+ typeof(query->action_index) action_index = {};
struct lttng_trigger *trigger_copy = NULL;
if (!trigger || !action) {