]> git.lttng.org Git - userspace-rcu.git/commitdiff
Fix: compat_futex: uninitialized ret variable
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Sep 2015 05:50:38 +0000 (01:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Sep 2015 05:51:11 +0000 (01:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
compat_futex.c

index 0cc2956b66bcf35a5fe0786844e9d133743e6690..6fe378f965d4407734fe16f3ffcc8ff8eb4afbb1 100644 (file)
@@ -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
This page took 0.029153 seconds and 4 git commands to generate.