From 98edcafa6487f6abd43a12a51e4d1111aa47095e Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Tue, 24 May 2022 00:15:41 +0300 Subject: Update MyString.cpp --- Sem. 09/MyString (with move)/MyString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sem. 09/MyString (with move)/MyString.cpp b/Sem. 09/MyString (with move)/MyString.cpp index 9ce6701..12171dd 100644 --- a/Sem. 09/MyString (with move)/MyString.cpp +++ b/Sem. 09/MyString (with move)/MyString.cpp @@ -56,7 +56,7 @@ MyString::MyString() { str = new char[1]; str[0] = '\0'; - size = 1; + size = 0; } MyString::MyString(const MyString& other) -- cgit v1.3.1-23-gd82d