From 54fd78efce9aeddcdc7b35151ad6744b7ee629cb Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 15 Sep 2015 01:50:38 -0400 Subject: [PATCH] Fix: compat_futex: uninitialized ret variable Signed-off-by: Mathieu Desnoyers --- compat_futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1