From 1a57fa095f3aefe7a1fb9f37a9432cdda33e9f3f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 23 Mar 2012 10:32:02 -0500 Subject: Fix processing of sticker database path After a previous refactor, the current code fails on paths that need expansion (e.g, '~/.mpd/sticker.db'), because we are not passing the correct path to the sticker database code. Pass the expanded (and previously unused) string instead of the original string. Signed-off-by: Dan McGee --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 687e86f7..4a10f143 100644 --- a/src/main.c +++ b/src/main.c @@ -194,8 +194,7 @@ glue_sticker_init(void) if (sticker_file == NULL && error != NULL) MPD_ERROR("%s", error->message); - if (!sticker_global_init(config_get_string(CONF_STICKER_FILE, NULL), - &error)) + if (!sticker_global_init(sticker_file, &error)) MPD_ERROR("%s", error->message); g_free(sticker_file); -- cgit v1.2.3