# std.os.path.dirname: return null instead of empty slice · gitcafe/zig

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

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

Visibility: public

Requested revision: 6943cefebf94631ff02d6e28436c07f4030924c6

Requested commit: 6943cefebf94631ff02d6e28436c07f4030924c6

Commit: 6943cefebf94631ff02d6e28436c07f4030924c6

Tree: 0f74832cd4549b4852299639cb2fb90fdb66a4cc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.os.path.dirname: return null instead of empty slice

for when there is no directory component. Makes it harder
to write bugs.

closes #1017

```

## Parents

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

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