From: Mathieu Desnoyers Date: Tue, 15 Sep 2015 05:50:38 +0000 (-0400) Subject: Fix: compat_futex: uninitialized ret variable X-Git-Tag: v0.8.9~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fdd694b3877a85f714b1de2ea2822f3315bb1761;p=userspace-rcu.git Fix: compat_futex: uninitialized ret variable Signed-off-by: Mathieu Desnoyers --- diff --git a/compat_futex.c b/compat_futex.c index 0cc2956..6fe378f 100644 --- a/compat_futex.c +++ b/compat_futex.c @@ -54,7 +54,7 @@ pthread_cond_t __urcu_compat_futex_cond = PTHREAD_COND_INITIALIZER; int compat_futex_noasync(int32_t *uaddr, int op, int32_t val, const struct timespec *timeout, int32_t *uaddr2, int32_t val3) { - int ret, lockret; + int ret = 0, lockret; /* * Check if NULL. Don't let users expect that they are taken into