summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2015-06-17 15:06:01 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-17 15:59:19 +0200
commit8bd3e79bb1805f71e13cdca5fbf1850f6ba5d6c7 (patch)
tree15406f33d571634b453ab55a399ab6813ff1b357
parentdbe8ca699a3ac55518d490f2aaad926cc5c86436 (diff)
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.c5
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,
257 } 257 }
258 258
259 d = calloc(1, sizeof(*d)); 259 d = calloc(1, sizeof(*d));
260 if (!d)
261 {
262 ERR("Fail to allocate memory");
263 return;
264 }
260 265
261 if (!eldbus_message_arguments_get(msg, "us", &(d->id), &aux)) 266 if (!eldbus_message_arguments_get(msg, "us", &(d->id), &aux))
262 { 267 {