sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit b63b01156acda632498c16cf36b176d2ec362a3d
parent 2e10f0abbc23930d6c89e3d0f4588d1a6f80143e
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  6 Jun 2016 16:40:10 -0400

Merge pull request #703 from thuck/variables_corner_cases

Fix segfault when using include with *
Diffstat:
Msway/config.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/config.c b/sway/config.c @@ -388,6 +388,11 @@ static bool load_include_config(const char *path, const char *parent_dir, struct char *real_path = realpath(full_path, NULL); free(full_path); + if (real_path == NULL) { + sway_log(L_DEBUG, "%s not found.", path); + return false; + } + // check if config has already been included int j; for (j = 0; j < config->config_chain->length; ++j) {