aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-26 19:36:50 +0100
committerMax Kellermann <max@duempel.org>2014-02-26 19:50:36 +0100
commit525789cd36c0dcf5a9b8a9fe25944197e9fc19cf (patch)
tree74ba59e95c09e4029c619b9df5370db3c7fe19ab /src/db
parent367d660c083c74f0ebf36341880f1412f98f18f0 (diff)
downloadmpd-525789cd36c0dcf5a9b8a9fe25944197e9fc19cf.tar.gz
mpd-525789cd36c0dcf5a9b8a9fe25944197e9fc19cf.tar.xz
mpd-525789cd36c0dcf5a9b8a9fe25944197e9fc19cf.zip
db/simple/Directory: make variables more local
Diffstat (limited to 'src/db')
-rw-r--r--src/db/plugins/simple/Directory.cxx6
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) {