Message ID | 20220810002735.2260172-6-ammar.faizi@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | liburing test fixes | expand |
diff --git a/test/fpos.c b/test/fpos.c index 4ffa22d..4c36f11 100644 --- a/test/fpos.c +++ b/test/fpos.c @@ -52,6 +52,9 @@ static int test_read(struct io_uring *ring, bool async, int blocksize) unsigned char buff[QUEUE_SIZE * blocksize]; unsigned char reordered[QUEUE_SIZE * blocksize]; + memset(buff, 0, QUEUE_SIZE * blocksize); + memset(reordered, 0, QUEUE_SIZE * blocksize); + create_file(".test_fpos_read", FILE_SIZE); fd = open(".test_fpos_read", O_RDONLY); unlink(".test_fpos_read");