Fix: compat_futex: uninitialized ret variable
[urcu.git] / 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.022544 seconds and 4 git commands to generate.