]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix coverity defects
authorvulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Feb 2011 08:16:45 +0000 (08:16 +0000)
committervulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Feb 2011 08:16:45 +0000 (08:16 +0000)
MUON/AliMUONTriggerIO.cxx
MUON/AliMUONTriggerSubprocessor.cxx

index ac6012c6dd17111ce4c6d5b2b434d60d728ad9d5..7afd86aca81d75e9967ab59f671ff6d43f47392c 100644 (file)
@@ -392,7 +392,7 @@ AliMUONTriggerIO::ReadConfig(const char* localFile,
 {
   /// Fill the various masks store from files
   
 {
   /// Fill the various masks store from files
   
-  if ( !regionalFile || strlen(regionalFile)==0 ) 
+  if ( !regionalConfig || !regionalFile || strlen(regionalFile)==0 ) 
   {
     AliError("Must have a regional file name to proceeed");
     return kFALSE;
   {
     AliError("Must have a regional file name to proceeed");
     return kFALSE;
index 3ea647f93a1f178259d7989f1bb049df8d005b3f..9973511ccc73cc107fd14e6d0a468ee94ef6da9b 100644 (file)
@@ -154,6 +154,8 @@ AliMUONTriggerSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
     return kFALSE;
   }
   
     return kFALSE;
   }
   
+  if ( regionalFile ) globalFile = kTRUE;
+
   if ( regionalFile ) fRegionalConfig = new AliMUONRegionalTriggerConfig();
   if ( localFile ) fLocalMasks = new AliMUON1DArray(AliMpConstants::TotalNofLocalBoards()+1);
   if ( globalFile )   fGlobalConfig   = new AliMUONGlobalCrateConfig();
   if ( regionalFile ) fRegionalConfig = new AliMUONRegionalTriggerConfig();
   if ( localFile ) fLocalMasks = new AliMUON1DArray(AliMpConstants::TotalNofLocalBoards()+1);
   if ( globalFile )   fGlobalConfig   = new AliMUONGlobalCrateConfig();