player: create config dir if it doesn't exist

This was dropped in the commit adding XDG support, probably
accidentally.

Also normalize some whitespace.
This commit is contained in:
wm4
2014-06-26 18:12:28 +02:00
parent 236fcd3648
commit 0dcde951b9
2 changed files with 3 additions and 4 deletions

View File

@@ -64,6 +64,8 @@ void mp_parse_cfgfiles(struct MPContext *mpctx)
if (!opts->load_config)
return;
mp_mk_config_dir(mpctx->global, "");
m_config_t *conf = mpctx->mconfig;
void *tmp = talloc_new(NULL);
char *conffile;