fix uninitialized variable in lio (aio) code
authorRich Felker <dalias@aerifal.cx>
Sun, 16 Jun 2013 05:40:17 +0000 (01:40 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 16 Jun 2013 05:40:17 +0000 (01:40 -0400)
src/aio/lio_listio.c

index 64a6ebc18c486c50e32a10ccaefcd93e2d1eba83..07145dd41656f85592954384a6c1d5252b2218f8 100644 (file)
@@ -13,7 +13,7 @@ struct lio_state {
 
 static int lio_wait(struct lio_state *st)
 {
-       int i, err, got_err;
+       int i, err, got_err = 0;
        int cnt = st->cnt;
        struct aiocb **cbs = st->cbs;