diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-17 12:17:41 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-17 12:17:41 +0100 |
commit | bbc5212436021cd76f173ce60d7f0d95411d3319 (patch) | |
tree | a6b517c25799913d4cf7f3b5fbc95d143a9a53e3 /src/fs/FileSystem.cxx | |
parent | c4f7740b800c49ad119e5d70335ea51a666e0114 (diff) |
fs/AllocatedPath: make the nullptr_t constructor public
Diffstat (limited to 'src/fs/FileSystem.cxx')
-rw-r--r-- | src/fs/FileSystem.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/FileSystem.cxx b/src/fs/FileSystem.cxx index 54543d2c7..3d425d190 100644 --- a/src/fs/FileSystem.cxx +++ b/src/fs/FileSystem.cxx @@ -45,15 +45,15 @@ ReadLink(Path path) #ifdef _WIN32 (void)path; errno = EINVAL; - return AllocatedPath::Null(); + return nullptr; #else char buffer[MPD_PATH_MAX]; ssize_t size = readlink(path.c_str(), buffer, MPD_PATH_MAX); if (size < 0) - return AllocatedPath::Null(); + return nullptr; if (size_t(size) >= MPD_PATH_MAX) { errno = ENOMEM; - return AllocatedPath::Null(); + return nullptr; } buffer[size] = '\0'; return AllocatedPath::FromFS(buffer); |