aboutsummaryrefslogtreecommitdiff
path: root/common/hashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/hashmap.h')
-rw-r--r--common/hashmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index b5b2bb922b..982e3df70f 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -155,6 +155,9 @@ public:
~HashMap();
HM_t &operator =(const HM_t &map) {
+ if (this == &map)
+ return *this;
+
// Remove the previous content and ...
clear();
delete[] _arr;