Skip to content

Commit b349081

Browse files
committed
lib/std/os/linux/IoUring.zig: provide_buffers: read: initialize entire buffer to silence false positive valgrind warning
1 parent fc1a66e commit b349081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/linux/IoUring.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3193,7 +3193,7 @@ test "provide_buffers: read" {
31933193

31943194
const buffer_len = 128;
31953195

3196-
var buffers: [4][buffer_len]u8 = undefined;
3196+
var buffers = std.mem.zeroes([4][buffer_len]u8); // not necessary, valgrind false positive
31973197

31983198
// Provide 4 buffers
31993199

0 commit comments

Comments
 (0)