mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-06 06:48:02 +02: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 libinput_source *source;
|
||||||
struct epoll_event ep;
|
struct epoll_event ep;
|
||||||
|
|
||||||
source = malloc(sizeof *source);
|
source = zalloc(sizeof *source);
|
||||||
if (!source)
|
if (!source)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue