Fix: common: uninitialized lttng::ctl:error field
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Jun 2022 14:54:09 +0000 (10:54 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 Jun 2022 15:07:43 +0000 (11:07 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I456d1811c3827472533d0531af7148ee6e7eb34b

src/common/exception.cpp

index 241686eaf6f4687038f522ed04ccc8d6d5707239..f1c530f7e4249928541a7603f311dcaac2cbee82 100644 (file)
@@ -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}
 {
 }
 
This page took 0.025702 seconds and 4 git commands to generate.