aboutsummaryrefslogtreecommitdiff
path: root/swaynag/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaynag/config.c')
-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";
}