database: removed redundant music_root allocation

The "music_root" global variable is allocated by db_init().
This commit is contained in:
Max Kellermann 2009-11-01 15:51:19 +01:00
parent 8bfe3497b0
commit c504004702

View File

@ -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,