From: Jérémie Galarneau Date: Wed, 21 Apr 2021 19:36:04 +0000 (-0400) Subject: Fix: sessiond: action-executor: uninitialized session_name used in logging X-Git-Tag: v2.13.0-rc1~57 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=42ef691e9ea3332b73024440b42187eec374792b;p=lttng-tools.git Fix: sessiond: action-executor: uninitialized session_name used in logging CID 1452636 (#1 of 1): Uninitialized pointer read (UNINIT) 8. uninit_use_in_call: Using uninitialized value session_name when calling fprintf Reported-by: Coverity Scan Signed-off-by: Jérémie Galarneau Change-Id: I497c613e8cb1342948b726cc5c196e46d61d83dd --- diff --git a/src/bin/lttng-sessiond/action-executor.c b/src/bin/lttng-sessiond/action-executor.c index 8e3f79813..780028ecc 100644 --- a/src/bin/lttng-sessiond/action-executor.c +++ b/src/bin/lttng-sessiond/action-executor.c @@ -570,8 +570,8 @@ static int action_executor_snapshot_session_handler( * existed. If not, skip the action altogether. */ if (!item->context.session_id.is_set) { - DBG("Session `%s` was not present at the moment the work item was enqueued for %s` action of trigger `%s`", - session_name, get_action_name(action), + DBG("Session was not present at the moment the work item was enqueued for %s` action of trigger `%s`", + get_action_name(action), get_trigger_name(work_item->trigger)); lttng_action_increase_execution_failure_count(action); ret = 0;