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:
Shinwoo Kim 2015-06-17 15:06:01 +02:00 committed by Cedric BAIL
parent 2e123305b4
commit 67b5d368b0
1 changed files with 5 additions and 0 deletions

View File

@ -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))
{