mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-31 22:16:49 +00:00
fix(userspace/falco): fix state inizialization.
This fixes an ugly segfault happening during hot reload. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
d17f2afe4f
commit
dd9163c6f4
@ -70,10 +70,10 @@ struct state
|
||||
{
|
||||
}
|
||||
|
||||
state(const std::string& cmd, const falco::app::options& opts):
|
||||
cmdline(cmd),
|
||||
options(opts)
|
||||
state(const std::string& cmd, const falco::app::options& opts): state()
|
||||
{
|
||||
cmdline = cmd;
|
||||
options = opts;
|
||||
}
|
||||
|
||||
std::string cmdline;
|
||||
|
Loading…
Reference in New Issue
Block a user