aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 077a5b4a..6e665434 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -407,6 +407,10 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
407 } else { 407 } else {
408 path = get_config_path(); 408 path = get_config_path();
409 } 409 }
410 if (path == NULL) {
411 sway_log(SWAY_ERROR, "Cannot find config file");
412 return false;
413 }
410 414
411 char *real_path = realpath(path, NULL); 415 char *real_path = realpath(path, NULL);
412 if (real_path == NULL) { 416 if (real_path == NULL) {