From e203d5e27840b3256e015777429b61f3f399444a Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Tue, 24 Mar 2009 22:29:07 -0500 Subject: [PATCH] bonehead error pthread_foo return 0 on *success* not error. --- conn_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn_queue.c b/conn_queue.c index fc5e5f2..c2cbec6 100644 --- a/conn_queue.c +++ b/conn_queue.c @@ -45,7 +45,7 @@ tpool_priv_init(void) struct tpool_qstate *tp; tp = (struct tpool_qstate *)malloc(sizeof(struct tpool_qstate)); if (!tp) return 0; - if (!pthread_cond_init(&tp->cond, 0)) { + if (pthread_cond_init(&tp->cond, 0)) { free(tp); return 0; } -- 2.50.1