# Compilation: don't give len=0 bufs to pwritev · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/29512f0edd9134ffe1f645ad69b5c4a3e1a7c7c3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 29512f0edd9134ffe1f645ad69b5c4a3e1a7c7c3

Requested commit: 29512f0edd9134ffe1f645ad69b5c4a3e1a7c7c3

Commit: 29512f0edd9134ffe1f645ad69b5c4a3e1a7c7c3

Tree: ace84cca69e91f212dd49e56b151e0ff8a07e9fe

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Compilation: don't give len=0 bufs to pwritev

The OS returns EFAULT for undefined pointers, even when len=0.

```

## Parents

- [cac7e5afc7624ef18fe7bc8c6acd743f8b5a7eaf](https://git.cafe/gitcafe/zig/commit/cac7e5afc7624ef18fe7bc8c6acd743f8b5a7eaf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/29512f0edd9134ffe1f645ad69b5c4a3e1a7c7c3?format=markdown)
