mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fix/improve dereference-before-null-checks.
This commit is contained in:
parent
3d81432a1e
commit
735d2c402a
8 changed files with 19 additions and 30 deletions
|
@ -2925,8 +2925,7 @@ void RemoteSerializer::GotID(ID* id, Val* val)
|
|||
const char* desc = val->AsString()->CheckString();
|
||||
current_peer->val->Assign(4, new StringVal(desc));
|
||||
|
||||
Log(LogInfo, fmt("peer_description is %s",
|
||||
(desc && *desc) ? desc : "not set"),
|
||||
Log(LogInfo, fmt("peer_description is %s", *desc ? desc : "not set"),
|
||||
current_peer);
|
||||
|
||||
Unref(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue