diff --git a/include/mtx/errors.hpp b/include/mtx/errors.hpp index d433089b974b05d5a051340a274252addbc9584c..f1890ad462a45da6d7a2876e9006c4f709ec03d2 100644 --- a/include/mtx/errors.hpp +++ b/include/mtx/errors.hpp @@ -57,7 +57,7 @@ from_string(const std::string &code); struct Error { //! Error code. - ErrorCode errcode; + ErrorCode errcode = {}; //! Human readable version of the error. std::string error; };