aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-14 12:31:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-14 14:53:51 +0200
commitcc2b346d96bc2877efc9719507ceaa4fefbc9668 (patch)
treef440f4f6a0ec1ef562348c1a938600ed2f90b6a1
parentdc86641052c59bb81ef5918b909529bd1b39736b (diff)
Initialize target::state_
We may need it even before recipe() resets it, for example, in mtime().
-rw-r--r--build2/target2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/target b/build2/target
index c5047d2..90709db 100644
--- a/build2/target
+++ b/build2/target
@@ -456,7 +456,7 @@ namespace build2
protected:
friend target_state execute_impl (action, target&) noexcept;
- target_state state_;
+ target_state state_ = target_state::unknown;
// Return fail-untranslated (but group-translated) state assuming the
// target is synchronized.