index 4a5dc8c06680180b75de83fcf2248e92b52d80c7..8f99a6d163cc0c4547fa516d30816e8d50181bc7 100644 (file)
{
mec_match_t *m;
- m = malloc (sizeof (*m));
+ m = calloc (1, sizeof (*m));
if (m == NULL)
{
- ERROR ("mec_create: malloc failed.");
+ ERROR ("mec_create: calloc failed.");
return (-ENOMEM);
}
- memset (m, 0, sizeof (*m));
if (ci->children_num != 0)
{