diff options
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 15108123..7530e530 100644 --- 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 | |||
388 | char *real_path = realpath(full_path, NULL); | 388 | char *real_path = realpath(full_path, NULL); |
389 | free(full_path); | 389 | free(full_path); |
390 | 390 | ||
391 | if (real_path == NULL) { | ||
392 | sway_log(L_DEBUG, "%s not found.", path); | ||
393 | return false; | ||
394 | } | ||
395 | |||
391 | // check if config has already been included | 396 | // check if config has already been included |
392 | int j; | 397 | int j; |
393 | for (j = 0; j < config->config_chain->length; ++j) { | 398 | for (j = 0; j < config->config_chain->length; ++j) { |