Fix crash from a missing check for an environment variable on macOS

Ref: !136472
This commit is contained in:
Charles Flèche
2025-03-25 11:06:42 +11:00
committed by Campbell Barton
parent 442150b5be
commit ce70f99b5d

View File

@@ -365,7 +365,8 @@ static uiBlock *wm_block_splash_create(bContext *C, ARegion *region, void * /*ar
# if defined(__APPLE__)
if (is_using_macos_rosetta() > 0)
# elif defined(_M_X64)
if (strncmp(BLI_getenv("PROCESSOR_IDENTIFIER"), "ARM", 3) == 0)
const char *proc_id = BLI_getenv("PROCESSOR_IDENTIFIER");
if (proc_id && strncmp(proc_id, "ARM", 3) == 0)
# endif
{
uiItemS_ex(layout, 2.0f, LayoutSeparatorType::Line);