forked from enlightenment/efl
elm_sys_notify.c: fixed memory illegal access issue spotted by coverity. CID 1039984.
This commit is contained in:
parent
7714e068c7
commit
2af97e24a0
|
@ -274,7 +274,7 @@ _on_action_invoked(void *data EINA_UNUSED,
|
|||
return;
|
||||
}
|
||||
|
||||
d = malloc(sizeof(*d));
|
||||
d = calloc(1, sizeof(*d));
|
||||
|
||||
if (!eldbus_message_arguments_get(msg, "us", &(d->id), &aux))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue