These are just to shut the compiler up, in all three cases we only access
the respective values if they're defined.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
*/
for (i = queue_num_elements(dev) - 1; i >= 0; i--) {
- struct input_event e;
+ struct input_event e = {{0,0}, 0, 0, 0};
queue_peek(dev, i, &e);
if (e.type == EV_SYN)
break;
unsigned int code, const void *data)
{
unsigned int max;
- unsigned long *mask;
+ unsigned long *mask = NULL;
if (libevdev_enable_event_type(dev, type))
return -1;
libevdev_disable_event_code(struct libevdev *dev, unsigned int type, unsigned int code)
{
unsigned int max;
- unsigned long *mask;
+ unsigned long *mask = NULL;
if (type > EV_MAX)
return -1;