mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix/simplify some if statement comparisons
This commit is contained in:
parent
103b381874
commit
5bfd84a903
7 changed files with 13 additions and 12 deletions
|
@ -148,7 +148,7 @@ void String::Set(std::string_view str)
|
|||
{
|
||||
Reset();
|
||||
|
||||
if ( str.data() )
|
||||
if ( ! str.empty() )
|
||||
{
|
||||
n = str.size();
|
||||
b = new u_char[n + 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue