X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=compat_futex.c;h=b7f78f0b1c87a832cfb33c22e3a93845bbe7d3bb;hp=0cc2956b66bcf35a5fe0786844e9d133743e6690;hb=074c3a1bde68f3d2607c5c4711ec456dbdb05bce;hpb=c8114d9b8b837fcd7e9ba83fd3d676bd2a70edb9 diff --git a/compat_futex.c b/compat_futex.c index 0cc2956..b7f78f0 100644 --- a/compat_futex.c +++ b/compat_futex.c @@ -54,11 +54,11 @@ 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 - * account. + * account. */ assert(!timeout); assert(!uaddr2); @@ -120,7 +120,7 @@ int compat_futex_async(int32_t *uaddr, int op, int32_t val, /* * Check if NULL. Don't let users expect that they are taken into - * account. + * account. */ assert(!timeout); assert(!uaddr2);