Make sure XDG_CONFIG_HOME is absolute, as per XDG basedir spec.

This commit is contained in:
Emmanuel Gil Peyrot
2015-05-04 17:08:08 +02:00
parent ac30733800
commit e24ed4f70c
+1 -1
View File
@@ -71,7 +71,7 @@ int main(int ac, char** av)
else
{
const char* xdg_config_home = getenv("XDG_CONFIG_HOME");
if (xdg_config_home)
if (xdg_config_home && xdg_config_home[0] == '/')
Config::filename = std::string{xdg_config_home} + "/" "biboumi" "/" "biboumi.cfg";
else
{