Commit c5040047 authored by Max Kellermann's avatar Max Kellermann

database: removed redundant music_root allocation

The "music_root" global variable is allocated by db_init().
parent 8bfe3497
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment