fix crash if bad config path given #719

This commit is contained in:
Chris Lee
2018-09-25 19:55:55 +00:00
parent 970c597796
commit b539c0a1c0
3 changed files with 5 additions and 2 deletions

View File

@@ -247,8 +247,9 @@ void init(int argc, char **argv)
if (!config_read()) {
fprintf(stderr, "tint2: Could not read config file.\n");
print_usage();
warnings_for_timers = false;
cleanup();
return;
exit(EXIT_FAILURE);
}
init_post_config();