Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
{
struct libinput_event_device_notify *added_device_event;
{
struct libinput_event_device_notify *added_device_event;
- added_device_event = malloc(sizeof *added_device_event);
+ added_device_event = zalloc(sizeof *added_device_event);
if (!added_device_event)
return;
if (!added_device_event)
return;
{
struct libinput_event_device_notify *removed_device_event;
{
struct libinput_event_device_notify *removed_device_event;
- removed_device_event = malloc(sizeof *removed_device_event);
+ removed_device_event = zalloc(sizeof *removed_device_event);
if (!removed_device_event)
return;
if (!removed_device_event)
return;
{
struct libinput_event_keyboard *key_event;
{
struct libinput_event_keyboard *key_event;
- key_event = malloc(sizeof *key_event);
+ key_event = zalloc(sizeof *key_event);
{
struct libinput_event_pointer *motion_event;
{
struct libinput_event_pointer *motion_event;
- motion_event = malloc(sizeof *motion_event);
+ motion_event = zalloc(sizeof *motion_event);
if (!motion_event)
return;
if (!motion_event)
return;
{
struct libinput_event_pointer *motion_absolute_event;
{
struct libinput_event_pointer *motion_absolute_event;
- motion_absolute_event = malloc(sizeof *motion_absolute_event);
+ motion_absolute_event = zalloc(sizeof *motion_absolute_event);
if (!motion_absolute_event)
return;
if (!motion_absolute_event)
return;
{
struct libinput_event_pointer *button_event;
{
struct libinput_event_pointer *button_event;
- button_event = malloc(sizeof *button_event);
+ button_event = zalloc(sizeof *button_event);
if (!button_event)
return;
if (!button_event)
return;
{
struct libinput_event_pointer *axis_event;
{
struct libinput_event_pointer *axis_event;
- axis_event = malloc(sizeof *axis_event);
+ axis_event = zalloc(sizeof *axis_event);
{
struct libinput_event_touch *touch_event;
{
struct libinput_event_touch *touch_event;
- touch_event = malloc(sizeof *touch_event);
+ touch_event = zalloc(sizeof *touch_event);
if (!touch_event)
return;
if (!touch_event)
return;