Browse Source

fix uninitialized variable in lio (aio) code

Rich Felker 11 years ago
parent
commit
8600849d74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/aio/lio_listio.c

+ 1 - 1
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;