Fix: sessiond: action-executor: uninitialized session_name used in logging
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Apr 2021 19:36:04 +0000 (15:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Apr 2021 21:07:07 +0000 (17:07 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: I497c613e8cb1342948b726cc5c196e46d61d83dd

src/bin/lttng-sessiond/action-executor.c

index 8e3f79813205ce3b2c4f5c60ec4015cc1e0b75a8..780028ecce6f37dcd6868e998c7ec77f014268f2 100644 (file)
@@ -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;
This page took 0.027683 seconds and 4 git commands to generate.