From: Mathieu Desnoyers Date: Mon, 14 Mar 2022 14:59:55 +0000 (-0400) Subject: Fix: lttng_event_enabler_create_syscall_events_if_missing() uninitialized ret variable X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fad51c94f3e3354e7bcecb58029f25405116eabd;p=lttng-modules.git Fix: lttng_event_enabler_create_syscall_events_if_missing() uninitialized ret variable Found by Coverity: ** CID 1476252: Uninitialized variables (UNINIT) /src/lttng-syscalls.c: 843 in lttng_event_enabler_create_syscall_events_if_missing() Signed-off-by: Mathieu Desnoyers Change-Id: Ibd43b79e760e34f8665d13bf2757bec2de1f56ee --- diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index a49a253c..e8b72573 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -840,7 +840,7 @@ int lttng_event_enabler_create_syscall_events_if_missing(struct lttng_event_enab lttng_syscall_event_enabler_create_matching_events(syscall_event_enabler); - return ret; + return 0; } int lttng_syscalls_unregister_syscall_table(struct lttng_kernel_syscall_table *syscall_table)