Fix coverity defect (Jochen)
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Apr 2011 16:50:41 +0000 (16:50 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Apr 2011 16:50:41 +0000 (16:50 +0000)
TRD/AliTRDgtuSim.cxx

index 91d0c61..a23b271 100644 (file)
@@ -457,7 +457,7 @@ Bool_t AliTRDgtuSim::WriteTracksToLoader(const TList * const listOfTracks)
     trackTree->Branch("TRDtrackGTU", "AliTRDtrackGTU", &trk, 32000);
   
   TIter next(listOfTracks);
-  while (trk = (AliTRDtrackGTU*) next()) {
+  while ((trk = (AliTRDtrackGTU*) next())) {
     trackTree->SetBranchAddress("TRDtrackGTU", &trk);
     trackTree->Fill();
   }