diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 10:26:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 10:50:22 +0200 |
commit | 83c726a34f325ae5be0d5b61b66a97cb41f6973e (patch) | |
tree | ff65ffc34bd655cce2a52b9e84d5a762ea0f021e /src/UpdateWalk.cxx | |
parent | a0415f73d459b5763f59dfa4151ec89834d29526 (diff) | |
download | mpd-83c726a34f325ae5be0d5b61b66a97cb41f6973e.tar.gz mpd-83c726a34f325ae5be0d5b61b66a97cb41f6973e.tar.xz mpd-83c726a34f325ae5be0d5b61b66a97cb41f6973e.zip |
GetBaseUTF8
Diffstat (limited to 'src/UpdateWalk.cxx')
-rw-r--r-- | src/UpdateWalk.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/UpdateWalk.cxx b/src/UpdateWalk.cxx index cf8ade9f3..d4586456b 100644 --- a/src/UpdateWalk.cxx +++ b/src/UpdateWalk.cxx @@ -458,7 +458,7 @@ update_uri(const char *uri) if (parent == nullptr) return; - char *name = g_path_get_basename(uri); + const char *name = PathTraits::GetBaseUTF8(uri); struct stat st; if (!skip_symlink(parent, name) && @@ -466,8 +466,6 @@ update_uri(const char *uri) update_directory_child(*parent, name, &st); else modified |= delete_name_in(*parent, name); - - g_free(name); } bool |