aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Directory.cxx')
-rw-r--r--src/Directory.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Directory.cxx b/src/Directory.cxx
index a64b4d84c..20fb44618 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -44,9 +44,9 @@ Directory::Allocate(const char *path)
const size_t path_size = strlen(path) + 1;
Directory *directory =
- (Directory *)g_malloc0(sizeof(*directory)
- - sizeof(directory->path)
- + path_size);
+ (Directory *)g_malloc(sizeof(*directory)
+ - sizeof(directory->path)
+ + path_size);
new(directory) Directory(path);
return directory;
@@ -61,6 +61,7 @@ Directory::Directory()
}
Directory::Directory(const char *_path)
+ :mtime(0), have_stat(false)
{
INIT_LIST_HEAD(&children);
INIT_LIST_HEAD(&songs);