A bunch of other minor issues reported by PVS-Studio

This commit is contained in:
Tim Wojtulewicz 2023-01-14 16:35:49 -07:00
parent 53f2364a86
commit 35ee96c4cb
7 changed files with 15 additions and 11 deletions

View file

@ -77,6 +77,9 @@ void String::Reset()
const String& String::operator=(const String& bs)
{
if ( this == &bs )
return *this;
Reset();
n = bs.n;
b = new u_char[n + 1];