mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 09:00:12 +01:00
filter: zalloc the struct to make sure the speed is initialized
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
ecec6721d1
commit
b21fbfd947
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ create_pointer_accelerator_filter(accel_profile_func_t profile)
|
|||
{
|
||||
struct pointer_accelerator *filter;
|
||||
|
||||
filter = malloc(sizeof *filter);
|
||||
filter = zalloc(sizeof *filter);
|
||||
if (filter == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue