Commit 1a57fa09 authored by Dan McGee's avatar Dan McGee Committed by Max Kellermann

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: 's avatarDan McGee <dan@archlinux.org>
parent 167242fe
......@@ -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);
......
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