mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Fix a bunch of variable shadowing issues from LGTM
This commit is contained in:
parent
f8eb2d9241
commit
e8dbfc1cb0
10 changed files with 28 additions and 27 deletions
|
@ -1173,8 +1173,8 @@ std::optional<SupervisorStemHandle> Supervisor::CreateStem(bool supervisor_mode)
|
|||
ss.pipe = std::make_unique<detail::PipePair>(FD_CLOEXEC, O_NONBLOCK, fds);
|
||||
ss.parent_pid = stem_ppid;
|
||||
|
||||
Stem stem{std::move(ss)};
|
||||
supervised_node = stem.Run();
|
||||
Stem new_stem{std::move(ss)};
|
||||
supervised_node = new_stem.Run();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -1195,8 +1195,8 @@ std::optional<SupervisorStemHandle> Supervisor::CreateStem(bool supervisor_mode)
|
|||
|
||||
if ( pid == 0 )
|
||||
{
|
||||
Stem stem{std::move(ss)};
|
||||
supervised_node = stem.Run();
|
||||
Stem new_stem{std::move(ss)};
|
||||
supervised_node = new_stem.Run();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue