aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-15 23:36:41 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-15 23:36:41 +0000
commit5ea8e2d65b18f764ca460ac25f1213d2498ed2f8 (patch)
treec000fb7a9e500b7f789cec9c715066547d847624 /src/main.c
parentbe3e2f08c991bde1050cc230ab695106ed41f2ed (diff)
downloadmpd-5ea8e2d65b18f764ca460ac25f1213d2498ed2f8.tar.gz
mpd-5ea8e2d65b18f764ca460ac25f1213d2498ed2f8.tar.xz
mpd-5ea8e2d65b18f764ca460ac25f1213d2498ed2f8.zip
don't stat() the db to get the modtime everytime, instead store it when we read the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@779 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 944c1af76..e2a8754b2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -306,8 +306,8 @@ int main(int argc, char * argv[]) {
initTables();
initPlaylist();
- if(!options.dbFile) directorydb = strdup(rpp2app(".mpddb"));
- else directorydb = strdup(options.dbFile);
+ if(!options.dbFile) directory_db = strdup(rpp2app(".mpddb"));
+ else directory_db = strdup(options.dbFile);
if(options.createDB>0 || options.onlyCreateDB || readDirectoryDB()<0)
{