diff options
Diffstat (limited to 'src/Directory.cxx')
-rw-r--r-- | src/Directory.cxx | 9 |
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); |