From 3ad3924dd88d522682aec8204e323c061c307148 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 6 Feb 2018 21:58:19 +0100 Subject: [PATCH] Simplify initialize() slightly --- ccache.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ccache.c b/ccache.c index 80d9916b5..9dfdbfc1b 100644 --- a/ccache.c +++ b/ccache.c @@ -3156,17 +3156,15 @@ initialize(void) // We could read the file but it contained errors. fatal("%s", errmsg); } - should_create_initial_config = true; + if (!conf->disable) { + should_create_initial_config = true; + } } if (!conf_update_from_environment(conf, &errmsg)) { fatal("%s", errmsg); } - if (conf->disable) { - should_create_initial_config = false; - } - if (should_create_initial_config) { create_initial_config_file(conf, primary_config_path); } -- 2.47.2