mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 01:10:08 +01:00
zalloc the libinput_source, don't malloc it
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
154b3cf749
commit
536dd6a40f
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ libinput_add_fd(struct libinput *libinput,
|
|||
struct libinput_source *source;
|
||||
struct epoll_event ep;
|
||||
|
||||
source = malloc(sizeof *source);
|
||||
source = zalloc(sizeof *source);
|
||||
if (!source)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue