diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-15 23:36:41 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-15 23:36:41 +0000 |
commit | 5ea8e2d65b18f764ca460ac25f1213d2498ed2f8 (patch) | |
tree | c000fb7a9e500b7f789cec9c715066547d847624 /src/main.c | |
parent | be3e2f08c991bde1050cc230ab695106ed41f2ed (diff) |
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 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
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) { |