aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/parser.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/build2/parser.hxx b/build2/parser.hxx
index 6031cad..fb7fb4e 100644
--- a/build2/parser.hxx
+++ b/build2/parser.hxx
@@ -610,11 +610,12 @@ namespace build2
bool boot_;
const path* path_; // Current path.
- lexer* lexer_;
- prerequisite* prerequisite_; // Current prerequisite, if any.
- target* target_; // Current target, if any.
- scope* scope_; // Current base scope (out_base).
- scope* root_; // Current root scope (out_root).
+ lexer* lexer_;
+
+ prerequisite* prerequisite_ = nullptr; // Current prerequisite, if any.
+ target* target_ = nullptr; // Current target, if any.
+ scope* scope_ = nullptr; // Current base scope (out_base).
+ scope* root_ = nullptr; // Current root scope (out_root).
const dir_path* pbase_ = nullptr; // Current pattern base directory.