From 07f4c1e3a96f57aa7dcc2ea309a55ab5875b6fda Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 19 Jan 2019 08:41:18 +0100 Subject: [PATCH] swaynag: fix XDG_CONFIG_HOME handling --- swaynag/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }