diff options
Diffstat (limited to 'rt/lio_listio.c')
-rw-r--r-- | rt/lio_listio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rt/lio_listio.c b/rt/lio_listio.c index 07c8d3ea28..e4d972960f 100644 --- a/rt/lio_listio.c +++ b/rt/lio_listio.c @@ -82,13 +82,10 @@ lio_listio (mode, list, nent, sig) } else if (mode == LIO_WAIT) { - pthread_cond_t cond; + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; struct waitlist waitlist[nent]; int oldstate; - /* Initialize the conditional variable. */ - pthread_cond_init (&cond, NULL); - total = 0; for (cnt = 0; cnt < nent; ++cnt) if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP |