this function is called more than once dont use static

This commit is contained in:
grant2258 2021-09-12 20:58:49 +01:00
parent b5138b6122
commit 88b15c1b1d

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;