mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
Merge pull request #703 from thuck/variables_corner_cases
Fix segfault when using include with *
This commit is contained in:
commit
b63b01156a
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue