mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix typo causing segmentation fault
This commit is contained in:
committed by
Christoffer Lerno
parent
2f3954a7d9
commit
a91330b7d1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user