r = k;
}
- qsort(enumerator->devices, enumerator->n_devices, sizeof(sd_device *), device_compare);
+ qsort_safe(enumerator->devices, enumerator->n_devices, sizeof(sd_device *), device_compare);
enumerator->scan_uptodate = true;
enumerator->type = DEVICE_ENUMERATION_TYPE_DEVICES;
}
}
- qsort(enumerator->devices, enumerator->n_devices, sizeof(sd_device *), device_compare);
+ qsort_safe(enumerator->devices, enumerator->n_devices, sizeof(sd_device *), device_compare);
enumerator->scan_uptodate = true;
enumerator->type = DEVICE_ENUMERATION_TYPE_SUBSYSTEMS;