From a18191ff73781a92605762f3f409b9f6783d3ce8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Mar 2016 13:15:18 +0200 Subject: Fix uninitialized target state bug The state may be used (before the recipe is set) to decide where the mtime comes from (target or group). --- build2/target | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build2/target b/build2/target index 5328bc4..b5e7ee9 100644 --- a/build2/target +++ b/build2/target @@ -186,7 +186,7 @@ namespace build2 // the iteration support itself, see the *_prerequisite_members() // machinery below. // - target* group {nullptr}; + target* group = nullptr; // You should not call this function directly; rather use // resolve_group_members() from . @@ -307,7 +307,7 @@ namespace build2 } public: - target_state raw_state; + target_state raw_state = target_state::unknown; target_state state () const -- cgit v1.1