Skip to content

Commit

Permalink
update(scap): add a memset to clear m_agent_info
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Co-authored-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
Andreagit97 and gnosek committed Sep 21, 2023
1 parent 7f1b4cb commit 944716a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions userspace/libscap/scap_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ limitations under the License.
int32_t scap_generic_init_platform(struct scap_platform* platform, char* lasterr, struct scap_open_args* oargs)
{
memset(&platform->m_machine_info, 0, sizeof(platform->m_machine_info));
memset(&platform->m_agent_info, 0, sizeof(platform->m_agent_info));
platform->m_proclist.m_proc_callback = oargs->proc_callback;
platform->m_proclist.m_proc_callback_context = oargs->proc_callback_context;
platform->m_proclist.m_proclist = NULL;
Expand Down

0 comments on commit 944716a

Please sign in to comment.