From: Mathieu Desnoyers Date: Mon, 14 Mar 2022 14:58:08 +0000 (-0400) Subject: Fix: lttng_syscall_filter_enable_event(): uninitialized ret variable X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ca62543e449b59f079b98ec94ffbed851c4e81e6;p=lttng-modules.git Fix: lttng_syscall_filter_enable_event(): uninitialized ret variable Found by Coverity: ** CID 1476253: Uninitialized variables (UNINIT) /src/lttng-syscalls.c: 1057 in lttng_syscall_filter_enable_event() Signed-off-by: Mathieu Desnoyers Change-Id: Ie49ef12681efaf7613501a2208cad26951177edd --- diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index d5e5df4a..a49a253c 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -975,7 +975,7 @@ int lttng_syscall_filter_enable_event(struct lttng_kernel_event_common *event) struct lttng_kernel_syscall_table *syscall_table = get_syscall_table_from_event(event); unsigned int syscall_id = event->priv->u.syscall.syscall_id; struct hlist_head *dispatch_list; - int ret; + int ret = 0; WARN_ON_ONCE(event->priv->instrumentation != LTTNG_KERNEL_ABI_SYSCALL);