From 6699024b445a152e78670549efabe024cd670e99 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 29 Aug 2017 12:43:33 -0400 Subject: [PATCH] handle empty config file --- examples/config.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/config.c b/examples/config.c index a1ed5d5a..954edb06 100644 --- a/examples/config.c +++ b/examples/config.c @@ -212,9 +212,7 @@ struct example_config *parse_args(int argc, char *argv[]) { int result = ini_parse(config->config_path, config_ini_handler, config); if (result == -1) { - wlr_log(L_ERROR, "Could not find config file at %s", - config->config_path); - exit(1); + wlr_log(L_DEBUG, "No config file found. Using empty config."); } else if (result == -2) { wlr_log(L_ERROR, "Could not allocate memory to parse config file"); exit(1);