From: chris mikkelson Date: Wed, 25 Mar 2009 03:29:07 +0000 (-0500) Subject: bonehead error pthread_foo return 0 on *success* not error. X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=e203d5e27840b3256e015777429b61f3f399444a;p=smtpsink bonehead error pthread_foo return 0 on *success* not error. --- 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; }