summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 80462cb..4a207b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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
{