mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Avoid superfluous string copies when adding to zeek::detail::sig_files
Coverity 1387015
This commit is contained in:
parent
86b00ad6df
commit
6ac7fc9c65
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ when return TOK_WHEN;
|
|||
zeek::reporter->Error("failed to find file associated with @load-sigs %s",
|
||||
file);
|
||||
else
|
||||
zeek::detail::sig_files.push_back(zeek::util::copy_string(path.c_str()));
|
||||
zeek::detail::sig_files.push_back(std::move(path));
|
||||
break;
|
||||
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue