From 42ef691e9ea3332b73024440b42187eec374792b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 21 Apr 2021 15:36:04 -0400 Subject: [PATCH] Fix: sessiond: action-executor: uninitialized session_name used in logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/action-executor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1