forked from enlightenment/efl
notify: fix prevent issue, dereference null return value
Summary: Fix prevent issue: Dereference null return value Test Plan: Use static analysis tool such as prevent Reviewers: raster, woohyun, jaehwan, Hermet Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D2669 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
2e123305b4
commit
67b5d368b0
|
@ -257,6 +257,11 @@ _on_action_invoked(void *data EINA_UNUSED,
|
|||
}
|
||||
|
||||
d = calloc(1, sizeof(*d));
|
||||
if (!d)
|
||||
{
|
||||
ERR("Fail to allocate memory");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!eldbus_message_arguments_get(msg, "us", &(d->id), &aux))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue