mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
A bunch of other minor issues reported by PVS-Studio
This commit is contained in:
parent
53f2364a86
commit
35ee96c4cb
7 changed files with 15 additions and 11 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue