summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-03-12 15:49:59 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-12 15:56:46 -0400
commit877d35e36116354addca99bf8875c03fee3309cb (patch)
tree098c99f02d85623c3656106dc85b8cca60f2ef01 /src/lib/ecore_wayland
parent37c2451b5f02895f9eb8686da56698135eeec658 (diff)
ecore-wl use calloc for Ecore_Wl_Input allocation instead of malloc+memset
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index c91e6b7..ffd382e 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -381,9 +381,7 @@ _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id)
381 381
382 LOGFN(__FILE__, __LINE__, __FUNCTION__); 382 LOGFN(__FILE__, __LINE__, __FUNCTION__);
383 383
384 if (!(input = malloc(sizeof(Ecore_Wl_Input)))) return; 384 if (!(input = calloc(1, sizeof(Ecore_Wl_Input)))) return;
385
386 memset(input, 0, sizeof(Ecore_Wl_Input));
387 385
388 input->display = ewd; 386 input->display = ewd;
389 input->pointer_focus = NULL; 387 input->pointer_focus = NULL;