aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 02:12:34 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 02:12:34 +0100
commit83488848e1091024a0a307b1539c1a85762ee1f1 (patch)
tree1024049a769ceffeedd302b3bfee379d99c47018 /src/Directory.cxx
parentf5a92d6cc39ea15ea8aa4cc35ee742a646b12508 (diff)
downloadmpd-83488848e1091024a0a307b1539c1a85762ee1f1.tar.gz
mpd-83488848e1091024a0a307b1539c1a85762ee1f1.tar.xz
mpd-83488848e1091024a0a307b1539c1a85762ee1f1.zip
Directory: initialise in default constructor
Diffstat (limited to '')
-rw-r--r--src/Directory.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Directory.cxx b/src/Directory.cxx
index b67ad3de8..dec772c01 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -51,6 +51,15 @@ Directory::Allocate(const char *path)
return directory;
}
+Directory::Directory()
+{
+ INIT_LIST_HEAD(&children);
+ INIT_LIST_HEAD(&songs);
+ INIT_LIST_HEAD(&playlists);
+
+ path[0] = 0;
+}
+
Directory::Directory(const char *_path)
{
INIT_LIST_HEAD(&children);