summaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index e51c4c9c34..2ddcb7c1d2 100644
--- a/path.c
+++ b/path.c
@@ -185,7 +185,7 @@ struct bstr mp_dirname(const char *path)
{
struct bstr ret = {(uint8_t *)path, mp_basename(path) - path};
if (ret.len == 0)
- return bstr(".");
+ return bstr0(".");
return ret;
}