summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-17 12:17:41 +0100
committerMax Kellermann <max@musicpd.org>2018-01-17 12:17:41 +0100
commitbbc5212436021cd76f173ce60d7f0d95411d3319 (patch)
treea6b517c25799913d4cf7f3b5fbc95d143a9a53e3 /src/unix
parentc4f7740b800c49ad119e5d70335ea51a666e0114 (diff)
fs/AllocatedPath: make the nullptr_t constructor public
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/Daemon.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/Daemon.cxx b/src/unix/Daemon.cxx
index fd4539310..826836849 100644
--- a/src/unix/Daemon.cxx
+++ b/src/unix/Daemon.cxx
@@ -54,7 +54,7 @@ static uid_t user_uid = (uid_t)-1;
static gid_t user_gid = (gid_t)-1;
/** the absolute path of the pidfile */
-static AllocatedPath pidfile = AllocatedPath::Null();
+static AllocatedPath pidfile = nullptr;
/* whether "group" conf. option was given */
static bool had_group = false;
@@ -251,7 +251,7 @@ daemonize_finish(void)
{
if (!pidfile.IsNull()) {
unlink(pidfile.c_str());
- pidfile = AllocatedPath::Null();
+ pidfile = nullptr;
}
free(user_name);