From dd9163c6f4f25803747e788c7bbb5c30d4bb5f3d Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 9 May 2024 08:50:46 +0200 Subject: [PATCH] fix(userspace/falco): fix state inizialization. This fixes an ugly segfault happening during hot reload. Signed-off-by: Federico Di Pierro --- userspace/falco/app/state.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/userspace/falco/app/state.h b/userspace/falco/app/state.h index 6a57cf20..ffe7ef77 100644 --- a/userspace/falco/app/state.h +++ b/userspace/falco/app/state.h @@ -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;