diff options
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/simple/Directory.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/db/plugins/simple/Directory.cxx b/src/db/plugins/simple/Directory.cxx index 98262bc52..05de51963 100644 --- a/src/db/plugins/simple/Directory.cxx +++ b/src/db/plugins/simple/Directory.cxx @@ -194,13 +194,11 @@ Directory::FindSong(const char *name_utf8) const Song * Directory::LookupSong(const char *uri) { - char *duplicated, *base; - assert(holding_db_lock()); assert(uri != nullptr); - duplicated = xstrdup(uri); - base = strrchr(duplicated, '/'); + char *duplicated = xstrdup(uri); + char *base = strrchr(duplicated, '/'); Directory *d = this; if (base != nullptr) { |