From 55463b76c1e18faaff2d5b920f733651b7e548fb Mon Sep 17 00:00:00 2001 From: Haoming Chen Date: Thu, 10 Mar 2022 06:33:32 -0800 Subject: [PATCH] Initialize TreeUpdater ctx_ with nullptr (#7722) --- include/xgboost/tree_updater.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xgboost/tree_updater.h b/include/xgboost/tree_updater.h index 5cee0779c..6189221dc 100644 --- a/include/xgboost/tree_updater.h +++ b/include/xgboost/tree_updater.h @@ -32,7 +32,7 @@ class Json; */ class TreeUpdater : public Configurable { protected: - GenericParameter const* ctx_; + GenericParameter const* ctx_ = nullptr; public: /*! \brief virtual destructor */