mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
A bunch of other minor issues reported by PVS-Studio
This commit is contained in:
parent
53f2364a86
commit
35ee96c4cb
7 changed files with 15 additions and 11 deletions
|
@ -630,7 +630,7 @@ Plugin* Manager::LookupPluginByPath(std::string_view _path)
|
|||
static bool hook_cmp(std::pair<int, Plugin*> a, std::pair<int, Plugin*> b)
|
||||
{
|
||||
if ( a.first == b.first )
|
||||
return util::strtolower(a.second->Name()) < util::strtolower(a.second->Name());
|
||||
return util::strtolower(a.second->Name()) < util::strtolower(b.second->Name());
|
||||
|
||||
// Reverse sort.
|
||||
return a.first > b.first;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue