mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-20 06:47:19 -04:00
Merge branch 'fanalyzer-fix' into 'master'
GCC static analyzer misc fixes See merge request wlroots/wlroots!4637
This commit is contained in:
commit
52730a2f1e
17 changed files with 57 additions and 6 deletions
|
|
@ -184,7 +184,7 @@ static void handle_tablet_pad_group_buttons(void *data,
|
|||
struct tablet_pad_group *group = data;
|
||||
|
||||
free(group->group.buttons);
|
||||
group->group.buttons = calloc(1, buttons->size);
|
||||
group->group.buttons = malloc(buttons->size);
|
||||
if (!group->group.buttons) {
|
||||
// FIXME: Add actual error handling
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue