From aa8bb856573df1fbc39fe86ca0348c3468a521be Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Fri, 13 Dec 2019 00:54:13 +0100 Subject: [PATCH] Fix uninitialized use warning --- include/mtx/errors.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mtx/errors.hpp b/include/mtx/errors.hpp index d433089b9..f1890ad46 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; }; -- GitLab