mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-20 06:47:19 -04:00
backend/wayland: fix tablet_v2 group buttons allocation
This commit is contained in:
parent
9cf810c3fb
commit
f55808aceb
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ static void handle_tablet_pad_group_buttons(void *data,
|
||||||
struct tablet_pad_group *group = data;
|
struct tablet_pad_group *group = data;
|
||||||
|
|
||||||
free(group->group.buttons);
|
free(group->group.buttons);
|
||||||
group->group.buttons = calloc(1, buttons->size);
|
group->group.buttons = malloc(buttons->size);
|
||||||
if (!group->group.buttons) {
|
if (!group->group.buttons) {
|
||||||
// FIXME: Add actual error handling
|
// FIXME: Add actual error handling
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue