aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-21 10:04:59 +0200
committerMax Kellermann <max@duempel.org>2013-10-21 10:04:59 +0200
commit7142c81c05d767a3e54c0c121f60628b6cfe9298 (patch)
tree3f50ceacd4bb8bd31bc19c23e1c905819e85e0a5 /src
parentc0421a57dacb5837c90608333be0c45a5d5fdc7e (diff)
downloadmpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.tar.gz
mpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.tar.xz
mpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.zip
DirectorySave: use Directory::GetName()
Diffstat (limited to '')
-rw-r--r--src/DirectorySave.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx
index 15f5f04c0..fa330d126 100644
--- a/src/DirectorySave.cxx
+++ b/src/DirectorySave.cxx
@@ -52,10 +52,7 @@ directory_save(FILE *fp, const Directory &directory)
Directory *cur;
directory_for_each_child(cur, directory) {
- char *base = g_path_get_basename(cur->path);
-
- fprintf(fp, DIRECTORY_DIR "%s\n", base);
- g_free(base);
+ fprintf(fp, DIRECTORY_DIR "%s\n", cur->GetName());
directory_save(fp, *cur);