diff options
author | Max Kellermann <max@duempel.org> | 2009-11-01 15:51:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-01 15:51:19 +0100 |
commit | c5040047020adb4139d7ed79659b326be4f7ffa4 (patch) | |
tree | 1749f7b5c63e43863d4cd471ab129c620665ca63 /src/database.c | |
parent | 8bfe3497b0909b33b4fdf5a17e80eb45d77fddeb (diff) | |
download | mpd-c5040047020adb4139d7ed79659b326be4f7ffa4.tar.gz mpd-c5040047020adb4139d7ed79659b326be4f7ffa4.tar.xz mpd-c5040047020adb4139d7ed79659b326be4f7ffa4.zip |
database: removed redundant music_root allocation
The "music_root" global variable is allocated by db_init().
Diffstat (limited to '')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c index dc0ef3686..b7f59d29f 100644 --- a/src/database.c +++ b/src/database.c @@ -265,8 +265,6 @@ db_load(GError **error) assert(database_path != NULL); assert(music_root != NULL); - if (!music_root) - music_root = directory_new("", NULL); while (!(fp = fopen(database_path, "r")) && errno == EINTR) ; if (fp == NULL) { g_set_error(error, db_quark(), errno, |