settings: ensure config path is absolute

I have a feeling using -D would break this due to the change to cwd?
This commit is contained in:
Adam Sutton 2014-04-07 10:23:05 +01:00
parent 3f51680a58
commit 89e1b97a92

View file

@ -51,7 +51,7 @@ void
hts_settings_init(const char *confpath)
{
if (confpath)
settingspath = strdup(confpath);
settingspath = realpath(confpath, NULL);
}
/**