mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
sway/config.c: move free call to after sway_log
This commit is contained in:
parent
b8722ecd5f
commit
01c2b5f2d6
|
@ -267,8 +267,8 @@ static char *get_config_path(void) {
|
||||||
strcpy(config_home, home);
|
strcpy(config_home, home);
|
||||||
strcat(config_home, "/.config");
|
strcat(config_home, "/.config");
|
||||||
setenv("XDG_CONFIG_HOME", config_home, 1);
|
setenv("XDG_CONFIG_HOME", config_home, 1);
|
||||||
free(config_home);
|
|
||||||
sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home);
|
sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home);
|
||||||
|
free(config_home);
|
||||||
}
|
}
|
||||||
|
|
||||||
wordexp_t p;
|
wordexp_t p;
|
||||||
|
|
Loading…
Reference in a new issue