summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'condvar.c')
-rw-r--r--condvar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/condvar.c b/condvar.c
index 6304391..f9230c1 100644
--- a/condvar.c
+++ b/condvar.c
@@ -299,7 +299,7 @@ pthread_cond_init (pthread_cond_t * cond, const pthread_condattr_t * attr)
cv = (pthread_cond_t) calloc (1, sizeof (*cv));
- if (cv != NULL)
+ if (cv == NULL)
{
result = ENOMEM;
goto FAIL0;