From 0b4547dd01aec3b00287344d258e4db21bcd57b8 Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Thu, 20 Dec 2018 14:27:18 +0100 Subject: Fix undefined role's state at construct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Role's state should be set to closed at construct. Bug: SPEC-1834 Change-Id: Icdee8f4606bccdeec3b74bea066679dd5975e8b7 Signed-off-by: Loïc Collignon --- ahl-binding/role.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahl-binding/role.hpp b/ahl-binding/role.hpp index 143a717..7cf0f7e 100644 --- a/ahl-binding/role.hpp +++ b/ahl-binding/role.hpp @@ -33,7 +33,7 @@ private: std::vector interrupts_; std::string device_uri_; - bool opened_; + bool opened_ = false; int apply_policy(afb_req_t req); -- cgit 1.2.3-korg