fix: warning '-Wformat-overflow' with GCC 11.2
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.cpp
index ecc4c3ea730513a16845dc42dd1aacecc798fb27..a2b92a858ae612254cafa8d8a13d05558c503bab 100644 (file)
@@ -585,7 +585,7 @@ int handle_job_queue(struct rotation_thread_handle *handle,
                session = job->session;
                if (!session) {
                        DBG("Session \"%s\" not found",
-                                       session->name);
+                                       session->name != NULL ? session->name : "");
                        /*
                         * This is a non-fatal error, and we cannot report it to
                         * the user (timer), so just print the error and
This page took 0.02301 seconds and 4 git commands to generate.