mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-04 23:02:47 +01:00
Revert "Free wordexp_t in config.c:get_config_path"
This reverts commit 33b24736c7
.
This commit is contained in:
parent
33b24736c7
commit
caaff5ac54
1 changed files with 0 additions and 2 deletions
|
@ -174,11 +174,9 @@ static char *get_config_path(void) {
|
||||||
if (wordexp(config_paths[i], &p, 0) == 0) {
|
if (wordexp(config_paths[i], &p, 0) == 0) {
|
||||||
path = p.we_wordv[0];
|
path = p.we_wordv[0];
|
||||||
if (file_exists(path)) {
|
if (file_exists(path)) {
|
||||||
wordfree(&p);
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wordfree(&p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL; // Not reached
|
return NULL; // Not reached
|
||||||
|
|
Loading…
Reference in a new issue