summaryrefslogtreecommitdiff
path: root/src/aio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-06-16 01:40:17 -0400
committerRich Felker <dalias@aerifal.cx>2013-06-16 01:40:17 -0400
commit8600849d74ddd1fca8eba467af5c04c18731ba49 (patch)
treedac428ebaa4ef5a82f51ce8a96fdbc8630ee0f49 /src/aio
parent20d01d83b5a13c77805976e7c520f566244ba3ff (diff)
downloadmusl-8600849d74ddd1fca8eba467af5c04c18731ba49.tar.gz
musl-8600849d74ddd1fca8eba467af5c04c18731ba49.tar.bz2
musl-8600849d74ddd1fca8eba467af5c04c18731ba49.tar.xz
musl-8600849d74ddd1fca8eba467af5c04c18731ba49.zip
fix uninitialized variable in lio (aio) code
Diffstat (limited to 'src/aio')
-rw-r--r--src/aio/lio_listio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c
index 64a6ebc1..07145dd4 100644
--- a/src/aio/lio_listio.c
+++ b/src/aio/lio_listio.c
@@ -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;