diff options
Diffstat (limited to 'src/String.cpp')
| -rw-r--r-- | src/String.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/String.cpp b/src/String.cpp index 8daec0f..bcd5e2e 100644 --- a/src/String.cpp +++ b/src/String.cpp | |||
| @@ -40,6 +40,8 @@ String::String(const PList::String& s) : Node(PLIST_INT) | |||
| 40 | 40 | ||
| 41 | String& String::operator=(const PList::String& s) | 41 | String& String::operator=(const PList::String& s) |
| 42 | { | 42 | { |
| 43 | if (this == &s) return *this; | ||
| 44 | |||
| 43 | plist_free(_node); | 45 | plist_free(_node); |
| 44 | _node = plist_copy(s.GetPlist()); | 46 | _node = plist_copy(s.GetPlist()); |
| 45 | return *this; | 47 | return *this; |
