diff options
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 9c08c8020..2f915a13a 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -111,7 +111,7 @@ int countSongsInDirectory(FILE * fp, Directory * directory, void * data) { } int printDirectoryInDirectory(FILE * fp, Directory * directory, void * data) { - if(directory->name) { + if(directory->path) { myfprintf(fp,"directory: %s\n", getDirectoryPath(directory)); } return 0; @@ -362,7 +362,7 @@ int listAllUniqueTags(FILE * fp, int type, int numConditionals, int sumSavedFilenameMemoryInDirectory(FILE * fp, Directory * dir, void * data) { int * sum = data; - if(!dir->name) return 0; + if(!dir->path) return 0; *sum += (strlen(getDirectoryPath(dir))+1-sizeof(Directory *))* dir->songs->numberOfNodes; @@ -390,12 +390,12 @@ void printSavedMemoryFromFilenames() { int sumSavedDirectoryNameMemoryInDirectory(FILE * fp, Directory * dir, void * data) { int * sum = data; - if(!dir->name) return 0; + if(!dir->path) return 0; *sum += (strlen(getDirectoryPath(dir))+1)* dir->subDirectories->numberOfNodes; - *sum += strlen(dir->name)+1; + *sum += strlen(dir->path)+1; return 0; } |