From 52dc0c0eeabb5b5ec9b422f45602a2f408c2a21b Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 14 Oct 2021 16:20:32 -0400 Subject: [PATCH] Removed unneeded bzero This prevents mis-optimization causing problems, particularly rdar://problem/23381916. --- CoreFoundation/Base.subproj/CFUUID.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/CoreFoundation/Base.subproj/CFUUID.c b/CoreFoundation/Base.subproj/CFUUID.c index e5d78b48e2..22ed0d0911 100644 --- a/CoreFoundation/Base.subproj/CFUUID.c +++ b/CoreFoundation/Base.subproj/CFUUID.c @@ -166,8 +166,6 @@ CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc) { if (useV1UUIDs == 1) uuid_generate_time(uuid); else uuid_generate_random(uuid); memcpy((void *)&bytes, uuid, sizeof(uuid)); #else - //This bzero works around . It isn't actually needed, since the function will simply return NULL on this deployment target, anyway. - bzero(&bytes, sizeof(bytes)); retval = 1; #endif });