database: removed redundant music_root allocation
The "music_root" global variable is allocated by db_init().
This commit is contained in:
parent
8bfe3497b0
commit
c504004702
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user