diff options
author | Shinwoo Kim <cinoo.kim@samsung.com> | 2015-06-17 15:06:01 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-06-17 15:59:19 +0200 |
commit | 8bd3e79bb1805f71e13cdca5fbf1850f6ba5d6c7 (patch) | |
tree | 15406f33d571634b453ab55a399ab6813ff1b357 | |
parent | dbe8ca699a3ac55518d490f2aaad926cc5c86436 (diff) | |
download | elementary-8bd3e79bb1805f71e13cdca5fbf1850f6ba5d6c7.tar.gz |
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>
-rw-r--r-- | src/lib/elm_sys_notify.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elm_sys_notify.c b/src/lib/elm_sys_notify.c index 279957734..23c936f2f 100644 --- a/src/lib/elm_sys_notify.c +++ b/src/lib/elm_sys_notify.c @@ -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)) { |