Coverity fix 20261
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 16 Dec 2012 08:43:38 +0000 (08:43 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 16 Dec 2012 08:43:38 +0000 (08:43 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerComponent.cxx

index 1ea5853..73c764b 100644 (file)
@@ -78,6 +78,9 @@ ClassImp( AliHLTTPCCATrackerComponent )
   // refer to README to build package
   // or
   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+  for( int i=0; i<fgkNSlices; i++ ){
+    fSliceOutput[i] = NULL;
+  }
 }
 
 AliHLTTPCCATrackerComponent::AliHLTTPCCATrackerComponent( const AliHLTTPCCATrackerComponent& )
@@ -101,12 +104,18 @@ AliHLTProcessor(),
   fGlobalTracking(0)
 {
   // see header file for class documentation
+  for( int i=0; i<fgkNSlices; i++ ){
+    fSliceOutput[i] = NULL;
+  }
   HLTFatal( "copy constructor untested" );
 }
 
 AliHLTTPCCATrackerComponent& AliHLTTPCCATrackerComponent::operator=( const AliHLTTPCCATrackerComponent& )
 {
   // see header file for class documentation
+  for( int i=0; i<fgkNSlices; i++ ){
+    fSliceOutput[i] = NULL;
+  }
   HLTFatal( "assignment operator untested" );
   return *this;
 }