From: Mathieu Desnoyers Date: Tue, 15 Sep 2015 05:50:38 +0000 (-0400) Subject: Fix: compat_futex: uninitialized ret variable X-Git-Tag: v0.7.16~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e0a85555202a649f6b53835dc80cf60f7ab1e288;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