From 6e1aa51e9e0951277be41e890df0725099ae38ae Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Sat, 31 May 2003 14:38:22 +0000 Subject: I botched one of my committs in the last round. Fix it. --- lib/libthr/thread/thr_cond.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libthr/thread/thr_cond.c') diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c index 95e5589bcff1..6a86b390df52 100644 --- a/lib/libthr/thread/thr_cond.c +++ b/lib/libthr/thread/thr_cond.c @@ -529,10 +529,11 @@ cond_queue_enq(pthread_cond_t cond, pthread_t pthread) static inline int cond_init(pthread_cond_t *cond) { + int error = 0; _SPINLOCK(&static_cond_lock); if (*cond == PTHREAD_COND_INITIALIZER) - return (_pthread_cond_init(cond, NULL)); + error = _pthread_cond_init(cond, NULL); _SPINUNLOCK(&static_cond_lock); - return (0); + return (error); } -- cgit v1.2.3