# std.posix.getenv: early-return comparison \(\#23265\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 326f254972d6f65d387f6dd29dc229e214ea61a4

Requested commit: 326f254972d6f65d387f6dd29dc229e214ea61a4

Commit: 326f254972d6f65d387f6dd29dc229e214ea61a4

Tree: 8c8ff83add6c44a01a5f9027ecb13faea5e4d5c1

Author: g-logunov

Committer: GitHub

## Message

```
std.posix.getenv: early-return comparison (#23265)

Fixes std.posix.getenv() being slower than musl getenv() even when linking libc
```

## Parents

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

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