mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Fix initialization of WriterFrontend names.
The string representation of the writer looked up based on the stream's enum value instead of the writer's enum value, often causing this component of the name to be "(null)" since a null pointer was returned from the lookup.
This commit is contained in:
parent
3f21764d00
commit
3f4b4c88a6
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ WriterFrontend::WriterFrontend(const WriterBackend::WriterInfo& arg_info, EnumVa
|
|||
write_buffer_pos = 0;
|
||||
info = new WriterBackend::WriterInfo(arg_info);
|
||||
|
||||
const char* w = arg_writer->Type()->AsEnumType()->Lookup(arg_stream->InternalInt());
|
||||
const char* w = arg_writer->Type()->AsEnumType()->Lookup(arg_writer->InternalInt());
|
||||
name = copy_string(fmt("%s/%s", arg_info.path, w));
|
||||
|
||||
if ( local )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue