From: cvetan Date: Tue, 1 Feb 2011 09:19:44 +0000 (+0000) Subject: Coverity fixes. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=68d8e59995e31ad7bed85557115a187020da024a;p=u%2Fmrichter%2FAliRoot.git Coverity fixes. --- diff --git a/RAW/AliRawReaderChain.cxx b/RAW/AliRawReaderChain.cxx index 33b6953f84b..4663bd62586 100644 --- a/RAW/AliRawReaderChain.cxx +++ b/RAW/AliRawReaderChain.cxx @@ -175,7 +175,10 @@ AliRawReaderChain::AliRawReaderChain(TChain *chain) : // create raw-reader objects which takes as an input a root chain // from a root file collection - if (!fChain) fIsValid = kFALSE; + if (!fChain) { + fIsValid = kFALSE; + return; + } fChain->SetBranchStatus("*",1); fChain->SetBranchAddress("rawevent",&fEvent,&fBranch); @@ -188,7 +191,10 @@ AliRawReaderChain::AliRawReaderChain(TEntryList *elist) : // create raw-reader objects which takes as an input a root chain // from a root file collection - if (!elist) fIsValid = kFALSE; + if (!elist) { + fIsValid = kFALSE; + return; + } fChain = new TChain("RAW");