Directory: initialize "mtime" and "have_stat"

This commit is contained in:
Max Kellermann 2014-01-15 18:53:53 +01:00
parent 14c3ff58a4
commit 876a095166
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ extern "C" {
#include <stdlib.h> #include <stdlib.h>
Directory::Directory(const char *_path_utf8, Directory *_parent) 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(&children);
INIT_LIST_HEAD(&songs); INIT_LIST_HEAD(&songs);