cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=8bd3e79bb1805f71e13cdca5fbf1850f6ba5d6c7

commit 8bd3e79bb1805f71e13cdca5fbf1850f6ba5d6c7
Author: Shinwoo Kim <cinoo....@samsung.com>
Date:   Wed Jun 17 15:06:01 2015 +0200

    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 <ced...@osg.samsung.com>
---
 src/lib/elm_sys_notify.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elm_sys_notify.c b/src/lib/elm_sys_notify.c
index 2799577..23c936f 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))
      {

-- 


Reply via email to