swaynag: fix XDG_CONFIG_HOME handling

This commit is contained in:
emersion 2019-01-19 08:41:18 +01:00
parent 1cce14e7c7
commit d66e84e9de
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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";
}