Fix typo causing segmentation fault

This commit is contained in:
mr6r4y
2025-05-17 16:32:48 +03:00
committed by Christoffer Lerno
parent 2f3954a7d9
commit a91330b7d1

View File

@@ -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