mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
Add missed NULL initialisation to local variable
Co-Authored-By: Ihor Dutchak <ihor.youw@gmail.com>
This commit is contained in:
@@ -298,7 +298,7 @@ static io_service_t hidapi_IOHIDDeviceGetService(IOHIDDeviceRef device)
|
||||
{
|
||||
static void *iokit_framework = NULL;
|
||||
typedef io_service_t (*dynamic_IOHIDDeviceGetService_t)(IOHIDDeviceRef device);
|
||||
static dynamic_IOHIDDeviceGetService_t dynamic_IOHIDDeviceGetService;
|
||||
static dynamic_IOHIDDeviceGetService_t dynamic_IOHIDDeviceGetService = NULL;
|
||||
|
||||
/* Use dlopen()/dlsym() to get a pointer to IOHIDDeviceGetService() if it exists.
|
||||
* If any of these steps fail, dynamic_IOHIDDeviceGetService will be left NULL
|
||||
|
||||
Reference in New Issue
Block a user