aboutsummaryrefslogtreecommitdiff
path: root/swaynag
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-19 08:41:18 +0100
committeremersion <contact@emersion.fr>2019-01-19 09:07:08 +0100
commit07f4c1e3a96f57aa7dcc2ea309a55ab5875b6fda (patch)
tree231e51ce242cedeb007a758ef8bd73f36be6193c /swaynag
parent695948e6891e0ec955f1fdc0771303cdaf19d026 (diff)
swaynag: fix XDG_CONFIG_HOME handling
Diffstat (limited to 'swaynag')
-rw-r--r--swaynag/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaynag/config.c b/swaynag/config.c
index b4c22443..e5e940c7 100644
--- a/swaynag/config.c
+++ b/swaynag/config.c
@@ -305,7 +305,7 @@ char *swaynag_get_config_path(void) {
};
char *config_home = getenv("XDG_CONFIG_HOME");
- if (!config_home || *config_home) {
+ if (!config_home || config_home[0] == '\0') {
config_paths[1] = "$HOME/.config/swaynag/config";
}