From 5ea8e2d65b18f764ca460ac25f1213d2498ed2f8 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 15 Apr 2004 23:36:41 +0000 Subject: 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 --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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) { -- cgit v1.2.3