summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-12-20 14:27:18 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-12-20 18:08:01 +0100
commit0b4547dd01aec3b00287344d258e4db21bcd57b8 (patch)
treec5aea4665f4f354f49a87c07f6292a3836c8182e
parenta314b7a8b4034f29337049b79cc2173198248743 (diff)
Fix undefined role's state at construct
Role's state should be set to closed at construct. Bug: SPEC-1834 Change-Id: Icdee8f4606bccdeec3b74bea066679dd5975e8b7 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r--ahl-binding/role.hpp2
1 files changed, 1 insertions, 1 deletions
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<interrupt_t> interrupts_;
std::string device_uri_;
- bool opened_;
+ bool opened_ = false;
int apply_policy(afb_req_t req);