Fix Coverity defect
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Oct 2010 12:39:41 +0000 (12:39 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Oct 2010 12:39:41 +0000 (12:39 +0000)
TRD/AliTRDclusterizer.cxx

index de142a4..ab89b67 100644 (file)
@@ -400,7 +400,7 @@ Bool_t AliTRDclusterizer::WriteClusters(Int_t det)
   TObjArray *ioArray = new TObjArray(400);
   TBranch *branch = fClusterTree->GetBranch("TRDcluster");
   if (!branch) {
-    branch = fClusterTree->Branch("TRDcluster","TObjArray",&ioArray,32000,0);
+    fClusterTree->Branch("TRDcluster","TObjArray",&ioArray,32000,0);
   } else branch->SetAddress(&ioArray);
   
   Int_t nRecPoints = RecPoints()->GetEntriesFast();