coverity fix
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 May 2011 09:10:41 +0000 (09:10 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 May 2011 09:10:41 +0000 (09:10 +0000)
TOF/AliTOFcalibHisto.cxx

index 347b564..26452c4 100644 (file)
@@ -481,8 +481,10 @@ AliTOFcalibHisto::LoadCalibStat()
 
   /* open input file */
   TFile *fileIn = TFile::Open(GetCalibStatFileName());
-  if (!fileIn || !fileIn->IsOpen())
+  if (!fileIn || !fileIn->IsOpen()) {
     AliError(Form("cannot open input file %s", GetCalibStatFileName()));
+    return;
+  }
 
   /* set calib par file */
   fgCalibStatFile = fileIn;