Skip to content

Commit

Permalink
[hist] fix missing initialization in copy constructor
Browse files Browse the repository at this point in the history
to avoid segviolation when calling copy-this
  • Loading branch information
ferdymercury authored and guitargeek committed Nov 7, 2024
1 parent a939ffa commit 0bd83ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hist/hist/src/TH2Poly.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0bd83ea

Please sign in to comment.