Skip to content

Commit

Permalink
fix(userspace/falco): fix state inizialization.
Browse files Browse the repository at this point in the history
This fixes an ugly segfault happening during hot reload.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed May 9, 2024
1 parent d17f2af commit dd9163c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userspace/falco/app/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd9163c

Please sign in to comment.