ecore-wl use calloc for Ecore_Wl_Input allocation instead of malloc+memset

This commit is contained in:
Mike Blumenkrantz 2015-03-12 15:49:59 -04:00
parent 37c2451b5f
commit 877d35e361
1 changed files with 1 additions and 3 deletions

View File

@ -381,9 +381,7 @@ _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!(input = malloc(sizeof(Ecore_Wl_Input)))) return;
memset(input, 0, sizeof(Ecore_Wl_Input));
if (!(input = calloc(1, sizeof(Ecore_Wl_Input)))) return;
input->display = ewd;
input->pointer_focus = NULL;