Fix: common: uninitialized lttng::ctl:error field
[lttng-tools.git] / 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.023022 seconds and 4 git commands to generate.