# macho: do not zero-out file if there are no nonzerofill sects · gitcafe/zig

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

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

Visibility: public

Requested revision: 76fb3e062161e84554e0665444135281f7bcaf74

Requested commit: 76fb3e062161e84554e0665444135281f7bcaf74

Commit: 76fb3e062161e84554e0665444135281f7bcaf74

Tree: 95ba509db81c7e25678dad4debde931de93b91b1

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: do not zero-out file if there are no nonzerofill sects

If the `__DATA` segment comprises of only zerofill sections, do not
accidentally zero out all of file.

```

## Parents

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

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