summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
authorbje <bje>1999-01-10 21:25:07 +0000
committerbje <bje>1999-01-10 21:25:07 +0000
commit66f7d3aafbde9b4f628dcdc23c7f59b28d86760b (patch)
tree819efe9e0675788dbaf57a4878cb59cbe17a0640 /condvar.c
parent6cd9f4f23d033e61bc9c742a0598040b9caadf89 (diff)
1999-01-11 Ben Elliston <bje@cygnus.com>
* condvar.c (pthread_cond_init): Invert logic when testing the return value from calloc().
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;