From 8ca10194e206a181797ffb7a73dd2deee12ac753 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Mar 2019 15:50:23 +0200 Subject: Initialize initial parser state --- build2/parser.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build2/parser.hxx b/build2/parser.hxx index 6031cad1..fb7fb4e9 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. -- cgit