mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Merge remote-tracking branch 'origin/topic/justin/conn-remove-empty-string-allocation'
* origin/topic/justin/conn-remove-empty-string-allocation: Avoid allocation of 0 length strings on new conns
This commit is contained in:
commit
c5ebe299b1
3 changed files with 13 additions and 2 deletions
|
@ -271,7 +271,9 @@ const RecordValPtr& Connection::GetVal()
|
|||
|
||||
conn_val->AssignTime(3, start_time); // ###
|
||||
conn_val->AssignInterval(4, last_time - start_time);
|
||||
conn_val->Assign(6, history);
|
||||
|
||||
if ( history.size() )
|
||||
conn_val->Assign(6, history);
|
||||
|
||||
conn_val->SetOrigin(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue