# fix segfault when /etc/hosts missing last newline · gitcafe/zig

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

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

Visibility: public

Requested revision: 1838134200c769b97b90f2b6daf7b50d861c7834

Requested commit: 1838134200c769b97b90f2b6daf7b50d861c7834

Commit: 1838134200c769b97b90f2b6daf7b50d861c7834

Tree: cb938ae693991154b8d278cc46981bdebe092358

Author: vitalii

Committer: Andrew Kelley

## Message

```
fix segfault when /etc/hosts missing last newline

```

## Parents

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

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