Fix: lttng_event_enabler_create_syscall_events_if_missing() uninitialized ret variable
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 14:59:55 +0000 (10:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 15:38:24 +0000 (11:38 -0400)
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 <mathieu.desnoyers@efficios.com>
Change-Id: Ibd43b79e760e34f8665d13bf2757bec2de1f56ee

src/lttng-syscalls.c

index a49a253caa25854f5a73800da2982dbaf5584fc3..e8b72573a42131c95b56e4952a11710e5d2e7957 100644 (file)
@@ -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)
This page took 0.027904 seconds and 4 git commands to generate.