From bd02e545eae251ee164d24dd58bd45a74f021f63 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Wed, 3 Jan 2024 14:55:38 +0100 Subject: [PATCH] chore(userspace/libsinsp): apply review suggestions Co-authored-by: Andrea Terzolo Signed-off-by: Jason Dellaluce --- userspace/libsinsp/sinsp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/libsinsp/sinsp.cpp b/userspace/libsinsp/sinsp.cpp index 3d64cd9db5..b99602a982 100644 --- a/userspace/libsinsp/sinsp.cpp +++ b/userspace/libsinsp/sinsp.cpp @@ -974,7 +974,7 @@ void sinsp::on_new_entry_from_proc(void* context, { if(m_filter != nullptr && is_capture()) { - scap_evt tscapevt; + scap_evt tscapevt = {}; tscapevt.tid = tid; tscapevt.ts = 0; tscapevt.type = PPME_SYSCALL_READ_X; @@ -982,7 +982,7 @@ void sinsp::on_new_entry_from_proc(void* context, tscapevt.nparams = 0; auto tinfo = find_thread(tid, true); - sinsp_evt tevt; + sinsp_evt tevt = {}; tevt.m_pevt = &tscapevt; tevt.m_inspector = this; tevt.m_info = &(g_infotables.m_event_info[PPME_SYSCALL_READ_X]);