]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Simplify initialize() slightly
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Feb 2018 20:58:19 +0000 (21:58 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Feb 2018 21:03:50 +0000 (22:03 +0100)
ccache.c

index 80d9916b5efb0f1bd4cbb6ffb56b9f282331e7fc..9dfdbfc1b84bbf183c4713a38da0ee0f1fb5804f 100644 (file)
--- 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);
        }