Coverity fixes.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 May 2011 07:09:41 +0000 (07:09 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 May 2011 07:09:41 +0000 (07:09 +0000)
TOF/AliTOFPreprocessorFDR.cxx

index 61e1a9f..c407b47 100644 (file)
@@ -265,13 +265,13 @@ UInt_t AliTOFPreprocessorFDR::ProcessDCSDataPoints(TMap* aliasMap)
     
     Log("Storing DCS Data in OCDB");
     resultDCSMap = Store("Calib","DCSData",array, &metaDataDCS,0,kTRUE);
-    if (!resultDCSStore){
+    if (!resultDCSMap){
       Log("Some problems occurred while storing DCS data results in OCDB, TOF exiting from Shuttle");
       return 3;// return error Code for processed DCS data not stored 
       // in reference data
     }
     
-    if (array) delete array;
+    delete array;
     return 0;
 
   }