Change calls to malloc + memset to calloc whenever an automatic conversion can
be done.
Possible candidates are not treated here, only the ones we can be sure the
conversion is safe.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51078
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
ret_srv = NULL;
list = NULL;
- list = malloc(sizeof(Ecore_Config_Server));
- memset(list, 0, sizeof(Ecore_Config_Server));
+ list = calloc(1, sizeof(Ecore_Config_Server));
if ((ret = _ecore_config_ipc_ecore_init(pipe_name, &list->server)) != ECORE_CONFIG_ERR_SUCC)
{
ERR("_ecore_config_ipc_init: failed to register %s, code %d",