aboutsummaryrefslogtreecommitdiff
path: root/common/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/array.h')
-rw-r--r--common/array.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/array.h b/common/array.h
index 95f3c90ebe..d0be7fa194 100644
--- a/common/array.h
+++ b/common/array.h
@@ -100,6 +100,9 @@ public:
}
Array<T>& operator =(const Array<T>& array) {
+ if (this == &array)
+ return *this;
+
if (_data)
delete [] _data;
_size = array._size;