aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-08 13:15:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-08 13:15:18 +0200
commita18191ff73781a92605762f3f409b9f6783d3ce8 (patch)
tree405b90e1b5abb0430558eee709fda6f862e56f7f /build2
parentbe1aefb4c5a9b4c41aa780edce52c6ac91ccdfe5 (diff)
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).
Diffstat (limited to 'build2')
-rw-r--r--build2/target4
1 files 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 <build2/algorithm>.
@@ -307,7 +307,7 @@ namespace build2
}
public:
- target_state raw_state;
+ target_state raw_state = target_state::unknown;
target_state
state () const