diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 99918c48c..00bbf7202 100644 --- a/src/main.c +++ b/src/main.c @@ -169,9 +169,14 @@ glue_db_init_and_load(void) if (path == NULL) MPD_ERROR(CONF_DB_FILE " setting missing"); - if (!db_init(path, &error)) + struct config_param *param = config_new_param("database", path->line); + config_add_block_param(param, "path", path->value, path->line); + + if (!db_init(param, &error)) MPD_ERROR("%s", error->message); + config_param_free(param); + ret = db_load(&error); if (!ret) MPD_ERROR("%s", error->message); |