summaryrefslogtreecommitdiff
path: root/ACE/ASNMP/asnmp/pdu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ASNMP/asnmp/pdu.cpp')
-rw-r--r--ACE/ASNMP/asnmp/pdu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ACE/ASNMP/asnmp/pdu.cpp b/ACE/ASNMP/asnmp/pdu.cpp
index cbe67dcbbab..fe7b175b7c2 100644
--- a/ACE/ASNMP/asnmp/pdu.cpp
+++ b/ACE/ASNMP/asnmp/pdu.cpp
@@ -98,6 +98,9 @@ Pdu::~Pdu()
//=====================[ assignment to another Pdu object overloaded ]===
Pdu& Pdu::operator=( const Pdu &pdu)
{
+ if (this == &pdu)
+ return *this;
+
int z; // looping variable
// Initialize all mv's