diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 15:50:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 15:50:23 +0200 |
commit | 8ca10194e206a181797ffb7a73dd2deee12ac753 (patch) | |
tree | e89ff6f41accbb59545daa2712cd801d9dbcae2e | |
parent | 9400ddfc949025abddb04344624fba3945562d33 (diff) |
Initialize initial parser state
-rw-r--r-- | build2/parser.hxx | 11 |
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. |