Merge pull request #12976 from grant2258/mouse_index

this function is called more than once dont use static
This commit is contained in:
Autechre 2021-09-13 11:44:28 +02:00 committed by GitHub
commit e24440d4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1228,8 +1228,8 @@ static bool open_devices(udev_input_t *udev,
struct udev_list_entry *devs = NULL;
struct udev_list_entry *item = NULL;
struct udev_enumerate *enumerate = udev_enumerate_new(udev->udev);
static int device_keyboard = 0;
static int device_mouse = 0;
int device_keyboard = 0;
int device_mouse = 0;
if (!enumerate)
return false;