db/simple/Directory: make variables more local
This commit is contained in:
parent
367d660c08
commit
525789cd36
@ -194,13 +194,11 @@ Directory::FindSong(const char *name_utf8) const
|
|||||||
Song *
|
Song *
|
||||||
Directory::LookupSong(const char *uri)
|
Directory::LookupSong(const char *uri)
|
||||||
{
|
{
|
||||||
char *duplicated, *base;
|
|
||||||
|
|
||||||
assert(holding_db_lock());
|
assert(holding_db_lock());
|
||||||
assert(uri != nullptr);
|
assert(uri != nullptr);
|
||||||
|
|
||||||
duplicated = xstrdup(uri);
|
char *duplicated = xstrdup(uri);
|
||||||
base = strrchr(duplicated, '/');
|
char *base = strrchr(duplicated, '/');
|
||||||
|
|
||||||
Directory *d = this;
|
Directory *d = this;
|
||||||
if (base != nullptr) {
|
if (base != nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user