From 2c8869044c0faff01c6bb8986346f78f631ceac1 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 7 Mar 2011 19:51:58 +0200 Subject: frontend: fix valgrind errors also fixes pc build --- frontend/linux/in_evdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/linux') diff --git a/frontend/linux/in_evdev.c b/frontend/linux/in_evdev.c index e6bdad1..d863c02 100644 --- a/frontend/linux/in_evdev.c +++ b/frontend/linux/in_evdev.c @@ -585,10 +585,11 @@ static int in_evdev_clean_binds(void *drv_data, int *binds, int *def_binds) in_evdev_t *dev = drv_data; int i, t, ret, offs, count = 0; + memset(keybits, 0, sizeof(keybits)); ret = ioctl(dev->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits); if (ret == -1) { perror("in_evdev: ioctl failed"); - memset(keybits, 0xff, sizeof(keybits)); /* mark all as good */ + // memset(keybits, 0xff, sizeof(keybits)); /* mark all as good */ } if (dev->abs_lzone != 0) { -- cgit v1.2.3