mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
The OS layer expects pointer addresses to be inside the application's address space even if the length is zero. Meanwhile, in Zig, slices may have undefined pointer addresses when the length is zero. So this function now modifies the iov_base fields when the length is zero.