From c5040047020adb4139d7ed79659b326be4f7ffa4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Nov 2009 15:51:19 +0100 Subject: [PATCH] database: removed redundant music_root allocation The "music_root" global variable is allocated by db_init(). --- src/database.c | 2 -- 1 file changed, 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,