diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 10:04:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 10:04:59 +0200 |
commit | 7142c81c05d767a3e54c0c121f60628b6cfe9298 (patch) | |
tree | 3f50ceacd4bb8bd31bc19c23e1c905819e85e0a5 /src | |
parent | c0421a57dacb5837c90608333be0c45a5d5fdc7e (diff) | |
download | mpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.tar.gz mpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.tar.xz mpd-7142c81c05d767a3e54c0c121f60628b6cfe9298.zip |
DirectorySave: use Directory::GetName()
Diffstat (limited to '')
-rw-r--r-- | src/DirectorySave.cxx | 5 |
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); |