]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity 19006
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2012 10:14:57 +0000 (10:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2012 10:14:57 +0000 (10:14 +0000)
STEER/ESD/AliESDCosmicTrack.cxx

index ee68c9bf93a42dab155c9779918408c6ef60af0f..bf7cf88dc492c43d02b5f1d0519c1c3c7dd117dc 100644 (file)
@@ -102,6 +102,7 @@ AliESDCosmicTrack &AliESDCosmicTrack::operator=(const AliESDCosmicTrack & costrk
   //
   // assignment operator
   //
+  if(&costrk == this) return *this;
   AliExternalTrackParam::operator=(costrk);
   fLowerTrackParam = new AliExternalTrackParam(*costrk.fLowerTrackParam);
   fX0UpperTrackParam = new AliExternalTrackParam(*costrk.fX0UpperTrackParam);