From: Mathieu Desnoyers Date: Tue, 15 Sep 2015 05:50:38 +0000 (-0400) Subject: Fix: compat_futex: uninitialized ret variable X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=54fd78efce9aeddcdc7b35151ad6744b7ee629cb;p=deliverable%2Fuserspace-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