aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-15 18:53:53 +0100
committerMax Kellermann <max@duempel.org>2014-01-15 18:53:53 +0100
commit876a095166de3a834007e637b9f845ffbc5a275a (patch)
tree803dca85e64fcbd33acccd5e1c0aff5bcd3c95c0 /src/Directory.cxx
parent14c3ff58a4f681d9f3475fbd828291185ac25703 (diff)
downloadmpd-876a095166de3a834007e637b9f845ffbc5a275a.tar.gz
mpd-876a095166de3a834007e637b9f845ffbc5a275a.tar.xz
mpd-876a095166de3a834007e637b9f845ffbc5a275a.zip
Directory: initialize "mtime" and "have_stat"
Diffstat (limited to 'src/Directory.cxx')
-rw-r--r--src/Directory.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Directory.cxx b/src/Directory.cxx
index 8a74fad79..ff2c00b05 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -39,7 +39,9 @@ extern "C" {
#include <stdlib.h>
Directory::Directory(const char *_path_utf8, Directory *_parent)
- :parent(_parent), path(_path_utf8)
+ :parent(_parent),
+ mtime(0), have_stat(false),
+ path(_path_utf8)
{
INIT_LIST_HEAD(&children);
INIT_LIST_HEAD(&songs);