# openbsd: fix OS version detection · gitcafe/zig

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

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

Visibility: public

Requested revision: 8fdfeb624dae7d60187c7a2c44c9624cca1bd461

Requested commit: 8fdfeb624dae7d60187c7a2c44c9624cca1bd461

Commit: 8fdfeb624dae7d60187c7a2c44c9624cca1bd461

Tree: 58e0ee52f1fcd6f2337b8553354379030903acd3

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
openbsd: fix OS version detection

- do not include resulting nullz from sysctl MIB fetch
- fixes bug: "7.8<NULL>" is a std.Target.Query.parseVersion error

```

## Parents

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

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