diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index 2ab7c7a46..6e5554481 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -1690,7 +1690,7 @@ const char *default_c_compiler(void) if (cc_env && strlen(cc_env) > 0) { INFO_LOG("Setting CC to %s from environment variable 'C3C_CC'.", cc_env); - cc = strdup(cc); + cc = strdup(cc_env); return cc; } #if PLATFORM_WINDOWS