mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
macOS: don't keep variable matchDict
This commit is contained in:
@@ -53,9 +53,8 @@ void detectDiskType(FFDisk* disk) // Not thread safe
|
||||
|
||||
io_iterator_t iterator;
|
||||
char temp = *numEnd; *numEnd = '\0'; // Check for root disk directly
|
||||
CFMutableDictionaryRef matchDict = IOBSDNameMatching(MACH_PORT_NULL, 0, disk->mountFrom.chars + strlen("/dev/"));
|
||||
*numEnd = temp;
|
||||
if(IOServiceGetMatchingServices(MACH_PORT_NULL, matchDict, &iterator) == kIOReturnSuccess)
|
||||
if(IOServiceGetMatchingServices(MACH_PORT_NULL, IOBSDNameMatching(MACH_PORT_NULL, 0, disk->mountFrom.chars + strlen("/dev/")), &iterator) == kIOReturnSuccess)
|
||||
{
|
||||
for (io_registry_entry_t registryEntry = IOIteratorNext(iterator); registryEntry; IORegistryEntryGetParentEntry(registryEntry, kIOServicePlane, ®istryEntry))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user