minor coverity defects: self-assignment protection
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Nov 2011 09:52:04 +0000 (09:52 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Nov 2011 09:52:04 +0000 (09:52 +0000)
HLT/BASE/AliHLTDataBuffer.h

index 9a0871f..55fedbf 100644 (file)
@@ -305,6 +305,7 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging
     AliHLTDataSegment& operator=(const AliHLTDataSegment& src)
     {
       // AliHLTDataSegment just stores external pointers and properties
+      if (this==&src) return *this;
       fDataType=src.fDataType;
       fPtr=src.fPtr;
       fSegmentOffset=src.fSegmentOffset;