summaryrefslogtreecommitdiffstats
path: root/url/gurl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'url/gurl.cc')
-rw-r--r--url/gurl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/url/gurl.cc b/url/gurl.cc
index 229df5d..7997d22 100644
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -169,6 +169,9 @@ GURL::~GURL() {
}
GURL& GURL::operator=(const GURL& other) {
+ if (&other == this)
+ return *this;
+
spec_ = other.spec_;
is_valid_ = other.is_valid_;
parsed_ = other.parsed_;