forked from enlightenment/efl
ecore-wl use calloc for Ecore_Wl_Input allocation instead of malloc+memset
This commit is contained in:
parent
37c2451b5f
commit
877d35e361
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue