aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/linux/in_evdev.c3
-rw-r--r--frontend/main.c2
-rw-r--r--frontend/plat_omap.c4
3 files changed, 5 insertions, 4 deletions
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) {
diff --git a/frontend/main.c b/frontend/main.c
index 61f023f..32b12ea 100644
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -375,8 +375,8 @@ void OnFile_Exit() {
#ifndef MAEMO
menu_finish();
#endif
- plat_finish();
SysClose();
+ plat_finish();
exit(0);
}
diff --git a/frontend/plat_omap.c b/frontend/plat_omap.c
index b479a66..b0490c7 100644
--- a/frontend/plat_omap.c
+++ b/frontend/plat_omap.c
@@ -30,8 +30,8 @@ struct vout_fbdev *layer_fb;
static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h, int first_call)
{
- struct omapfb_plane_info pi;
- struct omapfb_mem_info mi;
+ struct omapfb_plane_info pi = { 0, };
+ struct omapfb_mem_info mi = { 0, };
int ret;
ret = ioctl(fd, OMAPFB_QUERY_PLANE, &pi);