From: Jérémie Galarneau Date: Tue, 14 Jun 2022 14:54:09 +0000 (-0400) Subject: Fix: common: uninitialized lttng::ctl:error field X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=af8c83b633edbc8187cff754c175d696be31cdf1;p=lttng-tools.git Fix: common: uninitialized lttng::ctl:error field Signed-off-by: Jérémie Galarneau Change-Id: I456d1811c3827472533d0531af7148ee6e7eb34b --- diff --git a/src/common/exception.cpp b/src/common/exception.cpp index 241686eaf..f1c530f7e 100644 --- a/src/common/exception.cpp +++ b/src/common/exception.cpp @@ -26,7 +26,8 @@ lttng::ctl::error::error(lttng_error_code error_code, const char *file_name, const char *function_name, unsigned int line_number) : - runtime_error(std::string(error_get_str(error_code)), file_name, function_name, line_number) + runtime_error(std::string(error_get_str(error_code)), file_name, function_name, line_number), + _error_code{error_code} { }