mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix clang-tidy bugprone-suspicious-stringview-data-usage warnings
This commit is contained in:
parent
02589c349a
commit
975f24bde6
13 changed files with 28 additions and 19 deletions
|
@ -1590,7 +1590,7 @@ void Manager::ProcessMessage(std::string_view topic, broker::zeek::Event& ev) {
|
|||
if ( p.size() > topic.size() )
|
||||
continue;
|
||||
|
||||
if ( strncmp(p.data(), topic.data(), p.size()) != 0 )
|
||||
if ( strncmp(p.data(), topic.data(), p.size()) != 0 ) // NOLINT(bugprone-suspicious-stringview-data-usage)
|
||||
continue;
|
||||
|
||||
DBG_LOG(DBG_BROKER, "Skip processing of forwarded event: %s %s", std::string{name}.c_str(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue