From a9763951228c84bb626c0978eca31d2b563d8734 Mon Sep 17 00:00:00 2001 From: abercuci Date: Wed, 16 Jun 2010 06:32:19 +0000 Subject: [PATCH] fix pointer allocation suggested by Andrei --- PWG1/TRD/AliTRDcheckDET.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWG1/TRD/AliTRDcheckDET.cxx b/PWG1/TRD/AliTRDcheckDET.cxx index 2cdfeb943b3..f0f536277e2 100644 --- a/PWG1/TRD/AliTRDcheckDET.cxx +++ b/PWG1/TRD/AliTRDcheckDET.cxx @@ -1021,11 +1021,11 @@ TH1 *AliTRDcheckDET::PlotPHx(const AliTRDtrackV1 *track){ // Plots the average pulse height vs the distance from the anode wire // (plus const anode wire offset) // - if(track) fkTrack = track; - if(!fkTrack){ + if(!track){ AliWarning("No Track defined."); return NULL; } + fkTrack = track; TProfile *h = NULL; if(!(h = dynamic_cast(((TObjArray*)(fContainer->At(kPH)))->At(1)))){ AliWarning("No Histogram defined."); -- 2.43.0