Ecore: Use calloc() to initialize Ecore_Event_Key fully
authorJean-Philippe ANDRE <jpeg@videolan.org>
Wed, 25 Mar 2015 22:29:49 +0000 (15:29 -0700)
committerJean-Philippe ANDRE <jpeg@videolan.org>
Wed, 25 Mar 2015 22:34:23 +0000 (15:34 -0700)
commit0ef41604e88b8a8224818824217ebc09c93789d5
tree667a8d2abcc482aa9ae8deef1f7ed74aa3584ed3
parentf30c0ea3997e92d527d662cd9e33e76ed3fe0343
Ecore: Use calloc() to initialize Ecore_Event_Key fully

Some fields (eg. data) may not be properly initialized.
Use calloc() instead of malloc() will ensure proper initialization
even if we add more fields.

These fields (data) would even be passed down to Evas as
Evas_Event_Key_Down for instance.
src/lib/ecore_drm/ecore_drm_evdev.c
src/lib/ecore_psl1ght/ecore_psl1ght.c
src/lib/ecore_sdl/ecore_sdl.c
src/lib/ecore_wayland/ecore_wl_input.c
src/lib/ecore_x/xcb/ecore_xcb_events.c
src/lib/ecore_x/xlib/ecore_x_events.c
src/modules/ecore_imf/wayland/wayland_imcontext.c