We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0324a0b commit 9d569baCopy full SHA for 9d569ba
mac/hid.c
@@ -298,7 +298,7 @@ static io_service_t hidapi_IOHIDDeviceGetService(IOHIDDeviceRef device)
298
{
299
static void *iokit_framework = NULL;
300
typedef io_service_t (*dynamic_IOHIDDeviceGetService_t)(IOHIDDeviceRef device);
301
- static dynamic_IOHIDDeviceGetService_t dynamic_IOHIDDeviceGetService;
+ static dynamic_IOHIDDeviceGetService_t dynamic_IOHIDDeviceGetService = NULL;
302
303
/* Use dlopen()/dlsym() to get a pointer to IOHIDDeviceGetService() if it exists.
304
* If any of these steps fail, dynamic_IOHIDDeviceGetService will be left NULL
0 commit comments