Use correct array element type in memset

This commit is contained in:
Johannes Marbach
2021-11-20 21:25:55 +01:00
parent bf55a65d05
commit c0900fb9cd

View File

@@ -103,7 +103,7 @@ static void auto_connect(libinput_capability capability, int max_num_devs, int *
lv_indev_drv_t indev_drvs[], libinput_drv_state_t drv_states[]) {
memset(devs, 0, max_num_devs * sizeof(char *));
memset(indevs, 0, max_num_devs * sizeof(lv_indev_t));
memset(indevs, 0, max_num_devs * sizeof(lv_indev_t *));
memset(indev_drvs, 0, max_num_devs * sizeof(lv_indev_drv_t));
memset(drv_states, 0, max_num_devs * sizeof(libinput_drv_state_t));