aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-23 15:58:10 -0500
committerJack Lloyd <[email protected]>2018-12-23 15:58:10 -0500
commitf7f42bb8f26b7c927488d5b21c148199f1890d4c (patch)
tree3b045b063441a6376dc09ee7c7963252045a3f8f
parent80085ed7138db2112322e564377917adf44d243a (diff)
Initialize System_Error::m_error_code
Actual bug, flagged by Coverity
-rw-r--r--src/lib/utils/exceptn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp
index 8fc86d3e7..b2dff149b 100644
--- a/src/lib/utils/exceptn.cpp
+++ b/src/lib/utils/exceptn.cpp
@@ -106,7 +106,8 @@ Stream_IO_Error::Stream_IO_Error(const std::string& err) :
{}
System_Error::System_Error(const std::string& msg, int err_code) :
- Exception(msg + " error code " + std::to_string(err_code))
+ Exception(msg + " error code " + std::to_string(err_code)),
+ m_error_code(err_code)
{}
Self_Test_Failure::Self_Test_Failure(const std::string& err) :