From: Joel Rosdahl Date: Tue, 6 Feb 2018 20:58:19 +0000 (+0100) Subject: Simplify initialize() slightly X-Git-Tag: v3.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ad3924dd88d522682aec8204e323c061c307148;p=thirdparty%2Fccache.git Simplify initialize() slightly --- 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); }