From 0bd83eac951817e7abd84085af99617bfd2cab67 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Tue, 29 Oct 2024 11:26:34 +0100 Subject: [PATCH] [hist] fix missing initialization in copy constructor to avoid segviolation when calling copy-this --- hist/hist/src/TH2Poly.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hist/hist/src/TH2Poly.cxx b/hist/hist/src/TH2Poly.cxx index 009a63808bc22..1f96f43078e05 100644 --- a/hist/hist/src/TH2Poly.cxx +++ b/hist/hist/src/TH2Poly.cxx @@ -180,7 +180,8 @@ TH2Poly::TH2Poly(const char *name,const char *title, ///////////////////////////////////////////////////////////////////////////////// /// Copy constructor -TH2Poly::TH2Poly(const TH2Poly & rhs) : TH2() { +TH2Poly::TH2Poly(const TH2Poly & rhs) : TH2(), fCells(nullptr), +fIsEmpty(nullptr), fCompletelyInside(nullptr), fBins(nullptr) { rhs.Copy(*this); }