From 66f7d3aafbde9b4f628dcdc23c7f59b28d86760b Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 10 Jan 1999 21:25:07 +0000 Subject: 1999-01-11 Ben Elliston * condvar.c (pthread_cond_init): Invert logic when testing the return value from calloc(). --- condvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'condvar.c') 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; -- cgit v1.2.3